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
Merge pull request #28 from wikimedia/issue-27

Integrate jshint into the mocha tests
Add definitions for mocha-injected functions to keep jshint happy
Merge pull request #30 from wikimedia/mocha-jshint-hack

Add definitions for mocha-injected functions to keep jshint happy
Fix default port in README