Added option for publishing AMQP messages in a batch

Enable a option for batch publishing. This is not a BC break.