Make spec compatible with mocha CLI.
Add configs: bower, npm, grunt, jsdoc.
Add JSDoc comments.