Adds handling of request host port to be sent with redirect if present.
Wraps redirect response in array for newer version of Rack.