Allow rails 4 beta testing

You might want to do this in a rails4 branch instead, in case there are tweaks that need to be made for rails 4 to work.