More work on AMQP support.

 * fix publish() arguments
 * fix config option name
 * fix consume() flags
 * fix sending acks