Fix middlewares registration

Fix middlewares registration for Faraday 0.9.0pre