Initial refactoring
Refactoring around START TLS style wrap_socket after connecting the socket
Merge pull request #4 from jimbaker/ssl-refactor

Refactored SSL support