Fixed bug where deleteAll tried to delete same id multiple times.

Ensure find done in deleteAll only returns distinct ids. A wacky
combination of association and conditions can sometimes generate
multiple rows per id.
Merge pull request #2421 from ADmad/2.4-bugfix-deleteall

Fixed bug where deleteAll tried to delete same id multiple times.
Cast results of implementedEvents to an array.

This makes using mocks much easier with event listeners as they don't
need to provide a returnValue for implementedEvents.

Refs #2333
Update CakeEventManager.php

Cast resultados de implementedEvents a una matriz.

https://github.com/cakephp/cakephp/commit/e6f2c92005cfb5850159621da182f9b4f327fdd2
Merge pull request #2427 from EliuFlorez/patch-3

Cast implemented events to an array when detaching listeners.

This makes it much simpler to work with mocks, and avoids warnings caused by developer error.
Append / to the start/end of the mapResources prefix.

This makes the method easier to use and less error prone.

Fixes #2431
Fixed edge case which allowed login with empty password.

Ensure skipping call to FormAuthenticate::_checkFields() does not allow
logging in with empty password. Closes #2441.
Merge pull request #2444 from ADmad/2.4-auth-finduser

Fixed edge case which allowed login with empty password.
Add test to prove issues with deleteAll with $order set
Set 'order' to false to prevent issues with postgres

See: https://github.com/cakephp/cakephp/pull/2421#issuecomment-30074971
Merge pull request #2450 from rchavik/2.4-delete-all-regression

2.4 delete all regression
Attempt to fix errors with postgres tests.
Change quotes to keep postgres happy.
Merge branch 'master' of https://github.com/cakephp/cakephp

Conflicts:
	lib/Cake/Routing/Router.php