Add post-init hook for workers

Allows a config specifying a function after a worker has been initialized and before the run loop

Changes for #554