Mail: SmtpMailer uses HTTP_HOST instead of SERVER_NAME [Closes #1184]
Mail: getRandomId() relies on HTTP_HOST and php_uname (for CLI). HTTP_HOST is checked.
Debugger: relies on HTTP_HOST and php_uname (for CLI), SERVER_NAME is not used
Http: supports for IPv6 address in HTTP_HOST [Closes #1185]