Fix afterFind() called twice with hasMany relationship

It occurs when a model and the children models are related to a same model.
For example, such as the following:

* User hasMany Comment
* User hasMany Article
* Article hasMany Comment
Fix different format of $results in afterFind

Refs #2529

As of this commit, we can get consistent format of $resutls in afterFind.
And we can keep backward compatibility if Model::$useConsistentAfterFind is set to false.
Made AuthComponent::mapActions() act as a getter refs #3331
Revert "Merge pull request #4405 from php-engineer/master-session-bugfix"

This reverts commit 5863adda424b3f0f513436176608ea376af1c294, reversing
changes made to 4c37cf6d4b9ed740ed157a8a5089c6b76914def4.

There was no real issue. The lack of session cookie in CLI makes writing
tests a bit tricky which caused the confusion. Refs #4405, #4451.
Update version number to 2.5.4
Update all @deprecated annotations

to adhere to the @deprecated <version> <description> format, where version and description are mandatory.
Add array cast for method_cache data.

Fixes #4186
Merge pull request #4223 from chinpei215/2.6-issue2529-fix

Fix different format of $results in afterFind
console: don't use colored output if there's no TTY

This prevents ANSI escape codes and style tags showing up in
cron-jobs, pipes or redirects.
Merge pull request #4477 from mfn/mfn-console-output-isatty

console: don't use colored output if there's no TTY
Merge pull request #4463 from ravage84/deprecated-annotaions

Update all @deprecated annotations
Deprecated AuthComponent::mapActions
Merge pull request #4417 from jeremyharris/3331

Fix for #3331
Changed error message
Merge pull request #4507 from rochamarcelo/patch-2

Changed error message
Merge branch 'master' into 2.6

Conflicts:
	lib/Cake/Core/App.php
	lib/Cake/VERSION.txt
Merge remote-tracking branch 'origin/2.6' into 3.0

Conflicts:
	app/webroot/test.php
	lib/Cake/Cache/Engine/MemcacheEngine.php
	lib/Cake/Console/Command/ConsoleShell.php
	lib/Cake/Controller/Component/AclComponent.php
	lib/Cake/Controller/Component/Auth/BaseAuthenticate.php
	lib/Cake/Controller/Component/Auth/BlowfishAuthenticate.php
	lib/Cake/Controller/Component/AuthComponent.php
	lib/Cake/Controller/Component/EmailComponent.php
	lib/Cake/Controller/Component/SecurityComponent.php
	lib/Cake/Controller/Controller.php
	lib/Cake/Controller/Scaffold.php
	lib/Cake/Core/App.php
	lib/Cake/Model/BehaviorCollection.php
	lib/Cake/Model/Datasource/CakeSession.php
	lib/Cake/Model/Datasource/DboSource.php
	lib/Cake/Model/Model.php
	lib/Cake/Network/Http/HttpResponse.php
	lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
	lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php
	lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
	lib/Cake/Test/Case/Model/models.php
	lib/Cake/Utility/ObjectCollection.php
	lib/Cake/Utility/Sanitize.php
	lib/Cake/Utility/Security.php
	lib/Cake/Utility/Set.php
	lib/Cake/View/Helper.php
	lib/Cake/View/Helper/PaginatorHelper.php
	lib/Cake/View/MediaView.php
	lib/Cake/View/ScaffoldView.php
	lib/Cake/basics.php
	src/Console/ConsoleOutput.php
	src/Controller/Component/RequestHandlerComponent.php
	src/Log/Engine/ConsoleLog.php
	src/Network/Request.php
	src/Template/Bake/default/classes/component.ctp
	src/TestSuite/TestCase.php
	src/View/View.php
	src/View/ViewBlock.php