Use the injector for creating tasks.
Merge pull request #1168 from ajshort/task-creation-injector

Use the injector for creating tasks.