Added content from ezzatron's fork, added test for AMQP client factory.