rearrange faraday middleware

https://github.com/lostisland/faraday/issues/219