Add support for OSX. Upgrade to Ruby 2.1.1 and Rails 4.0.3