Added option for publishing AMQP messages in a batch

Enable a option for batch publishing. This PR does not change the current behavior.