Run JSCS as pre-commit hook
Created by: davemevans
This PR adds a git pre-commit hook to run the linting tools and reject a commit if any of those tools fail.
Note: Existing users will need to run npm install (or grunt githooks) to enable the pre-commit hook. grunt githooks is called automatically during npm install for new users.
The grunt tasks have been rearranged slightly such that #1043 (closed) is no longer an issue if someone has managed to sneak in a violation.
I also added Gruntfile.js to the JSCS config for fun, and fixed an issue that found.