Enables linting via jsHint

  - Adds a jshintrc file with the project settings
  - Adds a package.json and Gruntfile to enable automated linting
Makes all js files pass linting
Merge branch 'linting' into develop