#416 Added Linting to grunt

Added first version of linting to grunt. To run this, use grunt lint. 

There are tons of Lint comments. We either need to fix them, or add options as in http://www.jshint.com/docs/. 

Once that is done, I will add linting to the test cases.