Add grunt support and fix some jshint issues

Adds a Gruntfile.js including the following tasks:
  * hinting of files based on rules defined in `.jshintrc`
  * linting of `.json` files in tests

also includes fixed `jsint` warnings:
  * fix "Strings must use singlequote" 
  * fix "Bad line breaking before .."