[package] Add jshint support.

- Run jshint over all code with `npm run-script lint`
- Add instructions to docs.
- Add .jshintrc with "node" mode enabled.