Preparations for the client-side message deserialization.
Merged 'develop'.
Login process probably implemented.
Add logging.
Fix message type code.
Fix data sending error.
Error logging and WSAEWOULDBLOCK workaround.
Merge login functionality.