Adapted after pylyskom connection refactoring.
Added some kind of gevent connection class.
Some extra debug logging.