Adds grunt to the project, and de-lints the code based on jshint

Please take a look through the changeset. I commented out some code where jshint pointed out some missing references. Some of these may need to get worked out before merging into master. Please let me know what you think.