Initialized _dirty in KafkaConnection __init__() and set _sock to None in close()
Add some more debug logging to KafkaConnection
Improve KafkaConnection testing: mock socket.create_connection; add tests for __init__ and send