Fix incorrectly encoded headers in MailTransport.

When encoded values are present in header fields, they need to have
newlines removed as leaving the newlines in place and interfere with
delivery on Qmail based SMTP servers.

Fixes #2209
Add missing return type
Merge pull request #2282 from bcrowe/hotfix-returnType

Add missing return type
Merge branch 'master' into 2.5
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