Bulk permissions

This PR allows to set bulk permissions from any search page or from the profile page. Only the resources for which the user has the change_permissions will be affected.