Make adapters aware of their broker and brokers aware of their client

Also:
- centralize the logger
- tighten up configuration of brokers