Update ruby to 2.1.1 and rails to 4.0.4