implement generic declare_exchange and publish_event methods
Merge branch 'xivo-bus-refactor-2'