Updates for Rails 4

All and all pretty minor changes. All changes except one deal with the specs. Had to replace a lot of `all` calls with `load`.