Implement EZP-21731: Some parts of eZ Publish use a loose test for checking for SSL

Instead of using a crafted test on port, use the more complete eZSys::isSSLNow() function, that also take into account configurations with an SSL reverse proxy.