Add JSHint configuration files.
Add a `npm test` task that checks code quality.
Fix all JSHint warnings.