A rewrite of RequireHttps to support appharbor