update to Rails 4.0.0 and Ruby 2.0