Added login functionality

User nav menu changes its options based on login state.
Fixed a bug in Identity implementation where users couldn't be retrieved
via any means.
Added the first parts of Notes functionality to test API access control.