Manager as class

Mostly makes the management library a class instead of module, and creates a new one for every instance of any resource. Got one more bug fix en route to avoid 401's when creating queues/exchanges/bindings.