add https redirect for heroku server

This will only currently work on the heroku server sinc eit has a https
proxy. It will not work on the dev server since it has no https server
right now.