Relax ActiveRecord dependency: from 4.0 onwards

Apart from 4.1, testing for 4.0 and 4.2 prerelease.  Builds do not
succeed for Rails 3.x yet.
Don't test head Rubies against older Rails