Upgrade ruby and gems

I upgraded Ruby to 2.1.2 and Rails to 4.1.4.