Created PermissionModel singleton class, entity manager, and a controller/request observer for getting your own permissions.