LPS-38634 Make the url secure if company.security.auth.requires.https=true and the user is performing a log-in action.  After loging in or creating an account redirect to http if session.enable.phishing.protection=false and the user first came to the site on http
LPS-38634 Make switching between http/https swap non-standard ports. Make setting secure to false in PortalURLImpl work.
LPS-38634 Update the rest of the portal
LPS-38634 SF