Fix ssl redirect for heroku, add apikey