add timeout support for handshake
timeout in milliseconds, default handshakeTimeout to null
Merge pull request #21 from ezannelli/handshake-timeout

add timeout support for handshake