Factored out the task manager and the migrate task. apostrophe.js is now 50% lighter