Add AddRef/Release-API to medea.Resource base class