Update ruby and rails

Update the application to use ruby-2.1.2 and rails 4.1.1.