Initial work on the Permissions library (WIP)