make the permissions form correctly send the request
remove duplicated code that is in _permissions_form_js.html
Merge branch 'master' of https://github.com/GeoNode/geonode