Integrate jshint into the mocha tests

The following directories contain lots of jshint problems, so they're ignored for now:
 * node_modules
 * test

Fixes #27