fixes to new permission system, Vault, Wepif and Superperms tested to be working