Improve Certificate Checking (Add support for wildcard certificates and check against RDP gateway hostname)

1. In TLS connections, match host names against wildcard certificates (such as *.google.com)
2. For Gateway connections compare against gateway host name instead of target host name