Upgrade rails

Upgrades Rails to 4.0.3 and Ruby to 2.1.1