https redirect and 301 instead of 302

Https redirects: https://github.com/dokku-alt/dokku-alt/issues/99

301 instead of 302: https://github.com/dokku-alt/dokku-alt/issues/86