Add ActiveRecord::ConnectionAdapters::QueryCache adapter

Add the `ActiveRecord::ConnectionAdapters::QueryCache`

Imply moving the `rails` dependency from `> 3.0.0` to `>= 3.1`

This is an initial PR in an attempt to collapse back our local changes into the master repository.

Credits for the adapter: @airhorns