Fix the remaining JSHint warnings.

Also enable a few more JSHint checks.
Run `grunt`.
Add the JSHint check in the test target.