Support both 4.0 and 4.1 activerrecord on same branch

Hi there,

@jonatack this contains the structure we talked about in the other PR. Require different files depending on activerecord version. Let me know it looks ok. I believe it would make it possible to merge 4.1 into master and have both activerecord versions supported on the main branch.