Move role related views to FAB Auth manager:

- List roles
- Edit role
- Create role
- View role
for perm in perms:
                if perm.action is None:
                    
                    continue
                if perm.action.name not in base_action_names:
                    
                    roles = self.get_all_roles()
                    
                    for role in roles:
                        
                        
                        self.remove_permission_from_role(role, perm)
                    self.delete_permission(perm.action.name, resource_name)
                elif self.auth_role_admin not in self.builtin_roles and perm not in admin_role.permissions:
                    
                    self.add_permission_to_role(admin_role, perm)
    def add_permissions_menu(self, resource_name):
        """
        Adds menu_access to resource on permission_resource.
        :param resource_name:
            The resource name
        """
        self.create_resource(resource_name)
        perm = self.get_permission("menu_access", resource_name)
        if not perm:
            perm = self.create_permission("menu_access", resource_name)
        if self.auth_role_admin not in self.builtin_roles:
            role_admin = self.find_role(self.auth_role_admin)
            self.add_permission_to_role(role_admin, perm)
    def security_cleanup(self, baseviews, menus):