Rewrite app.js to app.coffee

app.js has been rewritten in coffeescript.  I sectioned out
the settings a bit so it's easier to read.