Geonode authorize layer fixes.

This PR updates the geonode_authorize_layer function to use the new django_guardian tables.