Cleaned up login and inbound data processing
Don't throw exception on receiving 0 bytes
Revert "Removed while loop in Socket_read"

This reverts commit 359c796e0eaee59a4d7633731ffdaa6a75b23c80.
Added sleep when waiting for incoming data

That's more like it!
Better fix for #6
Cleaned up auth header
Fixed server and client receipt events

Fixes #37
Fixes #110