updated to use faraday >= 0.7 and faraday_middleware ~> 0.9