Small amount of de-duplication in workflows API.
WIP: Couple threads here - delaying workflows, workflows manager, invocation API stuff.