support for connect and socket timeout options

As per discussion on pull request #20, thanks for considering those additions.

Cheers mate