Enable server to act as a self-proxy when using https.

Using wptserve with autoproxy is problematic as the server tries to read the
unencrypted CONNECT message as part of a TLS stream. This patch adds a mode
where encryption is not enabled until after the CONNECT message has been received.