Connection handshake update.

Handshaking is now done in a seperate thread. Also fixed nick issues and
message-lag.
closes #6
closes #8
Updated testbed.