Rails4 support

Hi,

This PR is first a way to start talking :) not yet a real PR. I'm unable to run your test suite, and i would enjoy some help :)

Except from that part, i don't think this PR should go to master branch, but it could be a good idea to open a rails4 branch on your side.