Add JSHint support.

Use `npm run check` or `npm run lint`.
Fix many JSHint warnings.
.jshint.rc: Enable curly rule.
Get rid of node.js v0.9 from travis; it was buggy and not stable.
Update .npmignore.