Refactor AMQP input/output and hub to use interfaces for mocking.
Add mock command for update_mocks script.
Add generated mock files.