Move to Ruby 2.1, Rails 4.1, and modern env flags.

Close #4
Close #6
Close #7