Injecting role on kernel

Change really from danielmarbach. 

Enables implementors to inject on the worker role.