Changed maincontroller.js from javascript to coffeescript.
Changed register.js from javascript to coffeescript.
Configurations for demo mode.