Rails 4

This updates everything to work on Rails 4. 

Pretty much all the gems are updated to their latest versions. Haven't messed with any client side stuff though so their all the oldish versions of Backbone and jQuery etc...

Hopefully not too many bugs...