Add jshint for code quality checks
Various coding standards fixes
Skip PEG-generated JS from linting for now, PEG itself doesn't produce correct JS