Coffee Lint

Setup CoffeeScript linting, and refactored a few bits.

Closes #47