Added TLS application protocol interface

Allows application protocols to determine TLS usage and to use ALPN,
NPN, etc.
Allows for clean implementation of several application protocols and TLS
libraries
Added HTTPS TLS application protocol
Added $HTTPS rewrite variable