Move bit mask table into class so that it can be changed with inheritance
Refactor UserDatastore and AclDatastore so that bit masks and permission maps can be overrided