c: Remove auto-reauthenticate, it's too complicated
c: Use mutex to make authentication handshake atomic
csharp: Remove auto-reauthenticate, it's too complicated
csharp: Exit receive thread on socket shutdown by peer

Otherwise multiple disconnected callback could be triggered.
csharp: Use lock to make authentication handshake atomic
delphi: Remove auto-reauthenticate, it's too complicated
delphi: Use mutex to make authentication handshake atomic
java: Fix redundant cast warnings
java: Remove auto-reauthenticate, it's too complicated
java: Fix octave checks in common code
java: Unify constructors of exception classes
java: Use mutex to make authentication handshake atomic
java: Use custom CryptoException instead of pulling in yet another exception hierarchy
Fix and add some comments
java: Unify constants style
javascript: Remove auto-reauthenticate, it's too complicated