Adding test to prove #5107
Fixes #5107 and removes some unneded code
Merge pull request #5108 from cakephp/3.0-pagination-union

3.0 pagination union
Cleanup - PHPDoc mismatches
Cleanup - Unused local variables
Cleanup - More PHPDoc mismatches
Cleanup - Undefined classes
exception's namespace strictly
Merge pull request #5112 from okonomi/3.0-docblock-namespace

3.0 exception's namespace strictly
Fix routing extensions leaking out of their scopes.

Each route builder should not leak extensions into other scopes. When
defining extensions in one route builder, they should not automatically
be available in other scopes. What we want to avoid is a plugin like
DebugKit adding `.json` extensions to all the application routes.

Refs #5089
Merge pull request #5114 from cakephp/issue-5089

Fix routing extensions leaking out of their scopes.
Cleanup - The aftermath

Cleaning up the mess I made (and some other stuff). Also made sure
that unsetting the email pattern, respectively validating using
`filter_var()` works properly.
Merge pull request #5111 from ndm2/3.0-cleanup

3.0 - Cleanup
Fix up mistake in Http\FormData

Before poking at the 0'th element make sure it exists.
Placing the event Model.beforeFind in ORM\Query::sql()

This will help getting the correct SQL after all behaviors have
added their changes to the queries even when debugging it or
using it in other queries as an expression.
Fixing bug where beforeFind was being triggered for delete queries
Configure::read('App.wwwRoot') in camelBack.
Fix tests
Query transformation should happen after beforeFind is triggered
Added test to prove that using translate behavior and union queries now works