unify null checks - avoid method call in favor of strict check
simplyfy test and correct some test param orders
a few more orders in test case corrected
RedirectRoute class does not honor persist as array with custom route elements.

Custom route elements like '/:lang/etc' should be persisted by redirect
routes as they are in standard routes.

Refs #GH-1531
Merge pull request #1533 from dereuromark/master-null-checks

unify null checks - avoid method call in favor of strict check
Add a test for Hash::sort()

Closes #3956
Makes PHPCS pass again.
Merge pull request #1537 from Phally/master-cs

Makes PHPCS pass again.
Remove insertQuery and deleteQuery.

These properties were never implemented and are misleading when people
try to use them.

Closes #3997
Conditionally define constants in the CLI environment.

Only define constants if they don't already exist. Users can modify
`app/Console/cake.php` and define constants before this code executes.

Fixes #4000
sync and correct generic css
Merge pull request #1541 from dereuromark/master-css

sync and correct generic css
remove duplicate newlines according to CS