Updated module to allow passing dependencies in from the caller (enable crutch usage), and migrated to use bluebird promises instead of when (since version stability with amqplib is not solid to my tastes.