MWEB-999 AMQP first step

Don't merge it yet
please move anonymous function code to separate named function and call it here