Changed the method for fetching urls using basic auth for rabbitMQ v3

This closes #45