Several fixes for Resource Manager

* Proper error handling in Resource Manager
* Add optional logging to Resource Manager
* Fix subscribing to resource when it in loading progress in Resource Manager