Add rename and delete operations to Resource
Make Resource ostreams thread safe