New permissions repository, with surrounding tests.