More refactoring to enable better handling of config management
Separation between job config and task config now made explicit.