Cleanup to event handling, properly handling failed connection, more logging fixes
Tested and updated all examples on OS X
More updates for binary sending
More cleanup, fix for binary sending if user frees data (now copying instead of assigning reference