somewhat involved fix for #163

* list_resource_configs / add_resource_config are now methods of the session
* resource_configs are stored in MongoDB and kept consisten accross active components