Adds :via => to routes for rails 4 compatability

rails 4 won't let you do a wild card match anymore, so I added :via => [:get,:post] etc to the necessary routes.