Made the consumer and publisher urls configurable.