Improve KafkaConnection with more tests

Handle connection failures in KafkaConnection.reinit
Set _sock=None in close()
Also check for no _sock when checking for _dirty
Add a few more debugging log messages
Implement the skipped connection tests in test/test_conn.py
any reason this is `None` instead of `False`? `True|False` is used everywhere else.