Add support for registering delegate workers.

Add methods for registering `Action`, `Action<TInput>` and `Func<TInput, TOutput>` as workers.