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

Similar to other plugin refactoring - moving actual task to dedicated file.

Also bumped the devDependency to ~0.4.0.