Update ruby to 2.1.0 and rails to 4.0.2