change rails gem version and ruby version
migrations were invalid for postgres, change :uniq to :unique, regen schema
active record had a whinge about using #all, recommending replacing it with #load
update environment for rails 4
move to rails4 routes
rails 4 uses a different secret token hash name
use strong_params where relevant and fix or add tests.
Merge pull request #295 from wadtech/rails4

Rails 4