Remove CRLF from To headers in MailTransport.

Like other header fields To should not contain CRLF.

Refs #2209
Fix formatting of decimal values when there is no fractionSymbol.

When a currency format does not include a fractionSymbol it should be
able to format fractional values.

Fixes #2253
Merge branch 'master' into 2.5
Split existing tests up, and add tests for Router based image URL's

Refs #2233
Fix missing HTML encoding on URL's generated by Html->meta().

The input URL was not correctly handled as an asset URL and thus was
not correctly HTML or URL escaped. This created invalid HTML when
favicon URLs included query string arguments.

Refs #2233
Model.php PHPDoc Description: Chang afterFilter with afterFind
Merge pull request #2300 from cusspvz/patch-1

Model.php PHPDoc Description: Change afterFilter with afterFind
Merge branch 'master' into 2.5
Profiles and optimised EventManager::listeners() function, reducing execution time by 14.5%

Refs #2105
Added EventManager::prioritisedListeners() function to alow the global event manager to return unprocessed listeners array

Refs #2105
Removed EventManager test that tested using a closure as it breaks compatability with php < 5.3.0

Refs #2105
Corrected coding standards violations in CateEventMAnagerTest.pnp

Refs #2105
Corrected coding standards violations in CaKeEventManagerTest.php

- Changed combining of arrays in CakeEventManager::listeners() to be more efficient

Refs #2105
Restore global event managers that were causing cascading failures.

Refs #2105
Merge branch 'ticket-4059' into 2.5

Merge the changes from pull request #1638 into 2.5.

This set of changes combines the listeners from the global and local
event managers into one ordered set of listeners. This makes the
cognitive load lower around events, as there are no longer two separate
priority queues for the global and local managers.

Closes #2105
Improve readability and optimize minimizing variable lookups.
Only generate query data for hasOne and belongsTo associations.

Avoid calling generateAssociationQuery():

* when the return value will never be usefull (True in this case)
* to avoid polluting $queryData with uneeded fields

Later, the SQL statement for the primary, and 'hasOne' plus 'belongsTo'
relationships, is built.
Remove unnecessary call to getDataSource().
Move variables to logical blocks.
Unindent to ease readability, and avoid assigning variables when
unneeded.
Free a little memory before entering to recursive intensive loops.
Remove unneeded test inside conditional.