Start splitting up main.coffee into modules.
Use coffeescript class syntax instead of extend pattern.