Added HTTPS support
Accept http and https connections
Added HTTPS enforcment support