adding AmqpClient class to hold connect/consume loop, updating example to use it