Add support for SSL connections via a connect() argument.

Passing any truthy value to the ssl= argument will use SSL; passing a dictionary allows tweaking the arguments used in the ssl.wrap_socket call.