Follow the worker API so we standardise on one library. This simplifies the code quite a bit. No functional change. Signed-off-by: Tom Gundersen <teg@jklm.no>
Move the API definition into a sub-directory to follow the style of the worker API. Signed-off-by: Tom Gundersen <teg@jklm.no>