s/http/http-error/ in exception-string
First but not very successful attempts at https-Support. Unfortunately, the POST requests will be a much bigger problem.
remove unused old debug counter, add location to location-changed logmessage.