No more ambiguos root routes

Rails 4 does not like there to be more than one root route specified
unless they are explicitly named.
Default scopes must be lambdas
Scopes should be given callable object

Conflicts:
	app/models/document_collection.rb
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?"