fixes ZEN-9726

These changes are based on a ruby implementation of encrypted winrm communications.  See https://github.com/WinRb/WinRM/blob/master/lib/winrm/http/transport.rb and https://github.com/zenchild/gssapi/blob/master/lib/gssapi/simple.rb.