Make activerecord dependency ~> 3.1

Rails 3 Surus code is incompatible with Rails 4
Release 0.4.2