Update to Rails 4.1.1 and Ruby 2.1.1

This commit bumps ruby to 2.1.1 and rails to 4.1.1. There are some dependency changes due to this.