Add final tests for 100% coverage of protocol.py from test/test_protocol.py
Refactor away _get_conn_for_broker.  Fix bug in _get_conn