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