Add support for the SSL_set_tlsext_host_name SNI extension

Suggested some time ago but never implemented. I needed this feature so here is the pull request.
https://bugzilla.osafoundation.org/show_bug.cgi?id=13073
https://bugzilla.redhat.com/show_bug.cgi?id=1029246