added app-main unit, renamed rootController => RootController, updated jshint globals