Update routes for Rails 4 compatibility

- The `match` method is no longer supported.
- Rails 4 does not like there to be more than one root route specified
  unless they are explicitly named.
Scopes (including defaults) must be lambdas
No need to require rubygems on boot
Move parameter filtering to initializer

This is what Rails 4 does by default
Specify regexp validation as multiline

According to the error from Rails 4 - "The provided regular expression
is using multiline anchors (^ or $), which may present a security
risk. Did you mean to use \A and \z, or forgot to add the
:multiline => true option?"