JSHint and Grunt

This pull request is the cleaned up and merge-able version of #24 and adds Grunt and JSHint and fixes all files to pass (including a small refactoring to retrieve the correct bundle name).