Added option for publishing AMQP messages in a batch