Realm implemented for authentication
Base implementations of permissions and authorization added to Realm