Angular UI refactored, authentication and authorization added.