More work on task management. Only the config package have not yet been refactored.