Support for Rails 4 router's deprecation of verb-less 'match'

With Rails 4.0.0.rc1 support for using the routes directive `match` without an HTTP verb has been removed.

This patch fixes that by replacing `match` with `get` and `post` respectively.