1) Creating an App function and moving app bootstrapping stuff in there. I'd like all things server-related to know as little about the JavaScript client as possible - this provides a cleaner interface between the two.