tasks: introduce TaskManager and CompositeTask, and dep. lookup by name.