Implement new RBAC PhpManager

This is a new implementation of PhpManager for the new RBAC API.
Should fix #3065