Make write_metadata_to_resource() reentrant, make create_resource_from_bag() return state sufficient to later recover from missing resource that the resource is depdent on.
Make write_metadata_to_resource() reentrant, make create_resource_from_bag()
return state sufficient to later recover from missing resource that the
resource is depdent on.

ResearchSoftwareInstitute/MyHPOM,FescueFungiShare/hydroshare,FescueFungiShare/hydroshare,RENCI/xDCIShare,hydroshare/hydroshare,RENCI/xDCIShare,FescueFungiShare/hydroshare,RENCI/xDCIShare,ResearchSoftwareInstitute/MyHPOM,hydroshare/hydroshare,FescueFungiShare/hydroshare,ResearchSoftwareInstitute/MyHPOM,RENCI/xDCIShare,RENCI/xDCIShare,ResearchSoftwareInstitute/MyHPOM,hydroshare/hydroshare,hydroshare/hydroshare,FescueFungiShare/hydroshare,ResearchSoftwareInstitute/MyHPOM,hydroshare/hydroshare