Fixed #1120

The owin host was setting the hostname to hostname:port (as it comes from
OWIN), rather than splitting it out to just the hostname and setting the
port separately, this meant the redirects to https were ending up as
https://hostname:normalport:httpsport/ which wasn't valid.
Merge pull request #1122 from grumpydev/Fix-1120

Fixed #1120