Override port if X-Forwarded-Port is provided - I hope this fixes https authentication on heroku