dana-i2cat/mqnaas — pull request #79 by isartcanyameres (2014-12-05 12:16:04+00:00)
Title: Feature/auto publish capabilities api

This patch causes that capabilities REST API is automatically published when the capability is bound to a resource.
However, this in only true for capabilities beign bound AFTER APIConnector is loaded.

This patch uses an IApplication (APIConnector) to observe executions of IBindingManagement.bind().
Whenever the bind is executed APIConnector calculates the URL where to publish the new capability and then calls IRESTAPIProvider.publish()

TODO:
- Publish capabilities already bound when APIConnector is loaded.
- Integration tests