Lint tasks

This adds a `.jshintrc` for the tasks and runs the linter on them as part of the build checks.