initial work towards permissions on resourcebase
make upload working
Merge branch 'master' of https://github.com/GeoNode/geonode into guardian

Conflicts:
	geonode/templates/_permissions_form.html
Merge branch 'master' of https://github.com/GeoNode/geonode into guardian
make layers tests to pass
fix maps, docs and api tests
some fixes and dropped the generic role mappings tables
add guardian to setup
test default non polymorphic
add polymorphic queryset to manager
Merge branch 'master' of https://github.com/simod/geonode into guardian

Conflicts:
	geonode/base/templates/base/resourcebase_info_panel.html
	geonode/documents/templates/documents/document_detail.html
	geonode/layers/templates/layers/layer_detail.html
	geonode/maps/templates/maps/map_detail.html
	setup.py
Merge branch 'master' of https://github.com/GeoNode/geonode into guardian
Merge branch 'master' of https://github.com/GeoNode/geonode into guardian
link geonode groups to django groups
remove the role mappings logic
add basic set_default_permissions
create a get resource method
use the guardian tables to check the if there are permissions
correctly check for the resourcebase_ptr
fix the layers_acls