Implement the initial RBAC functions and tests