Update stuff for rails4

Quick fix to make things work in Rails 4. It seems to work out of the box (I haven't done extensive testing mind) with just the dependancies on 3.2.x removed. I've also fixed the specs.