Sqlite::truncate(): Verify `sqlite_sequence` exists before _execute()

`sqlite_sequence` is a dynamic table that's only available when a table in
the database use an auto increment field.  For some cases, eg: databases that
exclusively use uuid for primary keys, this table won't exist and
truncate() call will fail with:

  Error: SQLSTATE[HY000]: General error: 1 no such table: sqlite_sequence
Reduce variable use/duplicate code.
Added/removed newlines to make the code more readable.
flushMethodCache not working if called before cacheMethod

When calling flushMethodCache it correctly empties self::$methodCache but if cacheMethod is called afterwards self::$methodCache gets populated with data from the Cache.
fix renderLayout and update deprecated and outdated code
Merge pull request #1630 from dereuromark/master-cleanup

Master cleanup
Fix incorrectly encoded address fields.

Address fields cannot contain : or " it causes a number of
mail servers/clients to be confused.

Fixes #4058
Corrected a CakeLog example in a DocBlock about scopes and types

> Its important to remember that
> when using scopes you must also define the `types` of log messages
>  that a logger will handle. Failing to do so will result in the logger
>  catching all log messages even if the scope is incorrect.

According to this the previous example would fail to log correctly.
Merge pull request #1632 from ravage84/cakelog_config

Corrected a CakeLog example in a DocBlock about scopes and types
Simplify & fix phone number validation.

The changes made in fa3d4a0bb5a25c461b4a42a4dbaf9829ee1afd93 tightened
the area code validation too much and excluded at least one valid area
code. This change replaces that with a more generic solution that does
not attempt to exclude non-allocated but potentially valid area codes.

Fixes #4066
Update version number to 2.4.1
remove wrong trailing slash
fix test
Improved wording of Model::invalidFields()

Inspired by
http://book.cakephp.org/2.0/en/models/data-validation/validating-data-from-the-controller.html#validating-data-from-the-controller
Merge pull request #1645 from ShinKenDo/patch-1

Improved wording of Model::invalidFields()
Fix wording and remove trailing spaces.
removed duplicate test case

Was exact duplicate of case starting line 692
Merge pull request #1646 from spiliot/patch-1

removed duplicate test case in CakeRequest Referer
Fix label element for attributes not matching their inputs.

Radio elements would contain ModelModelFieldValue instead of
ModelFieldValue like they should. This was caused by the fix for #3936
and lack of tests for create() + radio().

Fixes #4071
cs corrections, bool to boolean and int to integer.