[WFLY-1597] / [WFLY-2208] Ensure that any HTTP to HTTPS redirect occurs BEFORE upgrade.

That is if the HTTP interface is configured with a secure port we do not support any unencrypted management access.
[WFLY-1597] / [WFLY-2208] Handle a redirect from HTTP to HTTPS and convert to the correct address format for https-remoting.
Merge pull request #5817 from darranl/WFLY-2208

[WFLY-1597] / [WFLY-2208] Ensure http to https redirect is before HTTP upgrade and update CLI to honour the redirect.