Update to work with Faraday 0.9.

The latest version of Faraday introduced a breaking change. This updates
it to work with the middleware registration changes.

This should fix #239 too.