add timeout support for handshake

Add possibility to set timeout for handshake.

if socketio server is overloaded, handshake will wait on connection indefinitely, potentially leaving lots of php process hanging.

CURLOPT_CONNECTTIMEOUT is definitly needed when nodejs use 100% CPU and fail to process new client. Not sure about CURLOPT_TIMEOUT.

Thx