Added secure permissions module, refactored permissions and roles.