Fix TLS events

Event monitoring is not working under TLS because it isn't using Client.HTTPClient. This patch fixes it.

Includes a test using TLS mutual authentication. Probably needs some negative testing (e.g connecting HTTP client to HTTPS server or vice versa) to better validate error handling.