Fix an issue with the static caching handling of the osf_get_accessible_datasets() function.
The issue was happening when the ontologies cache was created but the ontologies were not loaded. That way, the labels were not available for these ontologies datasets which leaded down the road to return no ontologies even if they were loaded.
Fixed by re-getting the label if this situation happens.
(1) move the osf_permissions_get_group_uri() function to the core OSF module
(2) removed the dependency between the osf_configure and the osf_permissions modules
This fix the circular dependency issue between the two modules.