Grunt: Add JSHint support.
Remove unused functions/variables.
Fix most JSHint warnings.
Run `grunt`.