Added appController and authorization checking.
Template nesting is still not working 100%
Fixed $watch for isAuthorized.