Merge back

Moving task registry and lib into separate files. Bumping devDependency to ~0.4.0.