Integrate jshint into the mocha tests

Copied from https://github.com/wikimedia/restbase/pull/28 - again we ignore both the *node_modules* and *test* directories.