Code coverage implemented, using istanbul. Console output will now show coverage metrics when the `--coverage` flag is set.

TODO: Generate code coverage report artifacts (HTML files).

Also, cleaned up some code to comply with JSHINT rules.
Merge pull request #136 from sethmcl/code_coverage

Code coverage implemented, using istanbul.