Potentially set X-Forwarded-Proto and X-Forwarded-For when proxying to http_session sockets.

Closes GH-1231.