Upgrades to rails 4, ruby 2