Client checks for stored host before assigning
Store port for http and https
Updating host and port logic, unit tests pass
tests passing
Merge branch 'f/permanent-redirect-support' into development