Handshake implementation
Merge pull request #3 from valenok/master

Handshake implementation