Refactoring the CoffeeScript into multiple files

Whew...