Monitor channel.
Check return value of amqp_channel:register_*().
Stop when unknown message is received.
Check return value from amqp_channel:cast().
Use longstr for headers.