Gruntfile.js: Add JSLint configuration

See #165.
core.js: Make minimal changes to conform to the JSLint standard

See #165.
Replace JSLint with JSHint (and .jslintrc); add JSHint to watch task
Merge pull request #166 from jonkri/develop

JSLint checks and core.js conformance