Add optional connect/SSL handshake timeouts

This adds optional timeouts for establishing connections and completing an SSL handshake.
> doing the same there for consistency

Fair enough - I think the consistency would help