Stack upgrades

Updated Ruby to 2.1.1 and Rails to 4.1.0.