BUGFIX: proxy<==>proxied URL conversions need to know the target scheme.

The proxy and the proxied app may not have the same scheme.
HTTP behind an HTTPS proxy seems like a common scenario.