Integrate changes from dscape's PR.

https://github.com/noblesamurai/node-amqp-wrapper/pull/9