adding debugging for heroku
moving debug
fix dep order
adding debugging for bad host
adding support for heroku's x-forwarded-proto
fixing redirect path for - no PORT
adding https redirect