Massive refactor to compile app coffeescript