Update routing for Rails 4

Adds via: :all to matches in routes.rb and removes strict dependency on Rails 3