Updates middleware register call to work with Faraday 0.9.

Keeping support for Faraday 0.8 as well, and tweaking existing hash syntax to hash-rockets so this gem works with MRI 1.8 too.