Relax the dependency on active record and active support a bit; allows Rails 3 and 4.