Updated to Rails 4 and Ruby 2.0.0-p247