Job/tasks worker

This fixes #431 and fixes #447.
Maybe have a comment what FSM is, or have a more verbose file name.