Updates geonode_authorize_layer procedure to new data schema (abstract inheritance)

there is no layer.id since layer inherits from resourcebase in the new schema. ditto for layer.owner_id.
Merge pull request #12 from cspanring/patch-1

Updates geonode_authorize_layer procedure to new data schema (abstract inheritance)