Fixes #733 - parse x-forwarded-proto in a more generally compatibly way
make debug logging better
Merge pull request #739 from azylman/master

Fixes #733 - parse x-forwarded-proto more generally