Rewrite this grunt task into an actual lib

Fixes #53
Closes #57
Expect module's primary file from package.json to be found
Read main js file of modules from the package.json and pass assertions
Improve bin and tests