Remove use of deprecated constants.

Fixes #2232
Make use of timezone parameter in CakeTime::dayAsSql()
Merge pull request #2236 from bcrowe/hotfix-timezoneParam

Make use of timezone parameter in CakeTime::dayAsSql()
Add missing trim() around Sqlserver queries.

This solves issues with queries failing.

Fixes #2222
Fix COUNT(DISTINCT x) queries from getting corrupted in Sqlserver.

Add into the tower of hacks that is the SQL generation and stop breaking
COUNT(DISTINCT foo) style queries. Previously these would be converted
into DISTINCT COUNT(foo) which will give the non-distinct results.
Update date comparisons to be strict in CakeTime
Merge pull request #2239 from bcrowe/hotfix-strictTimeCompare

Update date comparisons to be strict in CakeTime
Pass depth through for Debugger::dump().
Fix for #2247 | Use correct column when calculating next sequence value

See #2247 for more details.
Merge pull request #2244 from dereuromark/2.5-debugger

Pass depth through for Debugger::dump().
Merge branch 'master' into 2.5
Parse cookie values "{}" & "[]" as array
Add test case
Merge pull request #2250 from luissquall/fix-cookie-explode

Parse cookie values "{}" & "[]" as array
Correct spelling of retrieve
Merge pull request #2252 from bcrowe/hotfix-retrieve

Correct spelling of retrieve
RedisEngine: Support for selecting database number

Closes GH-2254
Merge pull request #2255 from rchavik/2.5-redis-dbnumber

RedisEngine: Support for selecting database number
Added configurable default value to Hash::get()
Fixing whitespace