Add grunt support for linting and minifying.
Fix linting errors.