Proxy fixes to work with heroku.