TLS related fixes
TLS related fixes

Add debugging logs
Add __str__ method to Event
Bytes passed into socket.recv() represent MAX bytes,
there for only read required bytes
Don't set socket.MSG_WAITALL as its not compat with SSL wrapper

bmhatfield/bernhard,banjiewen/bernhard,cranti/bernhard,ClodoCorp/bernhard