Support for `heroku-agent` [1]

This supports communication with heroku-agent by downgrading the
connection to HTTP if communicating over a local Unix domain socket.

~~I'll send the corresponding pull for hk along momentarily.~~

The corresponding pull on hk is reviewable at heroku/hk#170.

[1] https://github.com/brandur/heroku-agent