Adds order to the test models to make the results more predictable.

Even though there was some code in place to prevent results in random
order from PostgreSQL we were still experiencing this with Jenkins
and Travis.

This commit removes the old code that handled this. From now on this
will be handled differently. Every test model will order by its
primary key. You can disable this by changing the order property
of the model to `null`: `$testModel->order = null`.
Added missing test + minor cleanup of ViewTests.php

Added missing block reset test through assign().
Also made some minor cleanup in ViewTests.php. Mostly docblocks (params, returns) but also some unused variables.
Merge pull request #1441 from ravage84/ViewTestsCleanup

Added missing test + minor cleanup of ViewTests.php
Replaces deprecated paginate() calls in controller bake templates.

Fixes #3895.
Merge pull request #1443 from Phally/master-3895

Replaces deprecated paginate() calls in controller bake templates.
Fixes cake bake all. Refs #1443.
Merge pull request #1445 from Phally/master-3895-2

Fixes cake bake all. Refs #1443.
Paths for App::build() require trailing /.
Merge pull request #1447 from Phally/master-bootstrap

Paths for App::build() require trailing /.
whitespace correction
Use ModelValidator::count() to count dynamiclly added validation rules
Strips the base off the generated URL from the AuthComponent.

Fixes #3922.
Merge pull request #1451 from Phally/master-3922

Strips the base off the generated URL from the AuthComponent.
Update webroot files to fix an issue in ServerShell.

The previous fixes done in 2918ae9c7ab86208be25d5652d94c14685c59faa
caused other issues preventing actions from being dispatched properly.

Fixes #3934
Add failing test for #3930
Throw exceptions when '' is used as translation domain.

'' is never a good translation domain and often indicates developer
error. Treat it as a mistake and throw an exception.

Fixes #3939
Fix FileEngine not clearing keys when groups are used.

Fixes #3930
Added return before redirects

As recommended by the Cookbook:
http://book.cakephp.org/2.0/en/development/testing.html#testing-controllers

> When testing actions that contain redirect() and other code following the redirect it is generally a good idea to return when redirecting. The reason for this, is that redirect() is mocked in testing, and does not exit like normal. And instead of your code exiting, it will continue to run code following the redirect.
Merge pull request #1458 from ravage84/patch-2

Added return before redirects
Added missing calls to setUp & tearDown in tests