Relocate each class to individual files.

Each class now has its own file in the lib/ directory. The inherits-function has been moved to a utils-file.
Validated files with JSLint.

The three classes now all satisfy the JSLint criteria. The inherits-function from lib/utils.js does not, but for compatability with CoffeeScript I haven't modified it to satisfy JSLint.