Restrict active{record,support} versions, to < 4.0.

ActiveRecord 4.0 isn't supported at the moment, for reasons we haven't had time
to investigate.