Improve TLS/SSL support

Add TLSUtils. Make it possible to set the enabled SSL/TLS protocols and
ciphers and provide sane error reporting.
Merge remote-tracking branch 'upstream/master' into get_configuration_visibility