Still a lot of bugs but started cleanup.

Got make file for building handlebars/coffeescript
Started moving functions into coffeescript and out of index.html
Started using handlebars templates.