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