http: allow createServer() to return a HTTPS server

This commit allows the http module to create a HTTPS server
if TLS options are passed to createServer() or the Server()
constructor.