moved init code from main.coffee to router, have a router, layout view stuff in its own file