Moved template directory to the constructor.  Moved the App to the global object, and setup HTTP caching.