fix spell of contentType
optimise download file
fix multi connection/part downloading file
update tests
update tests
Merge remote-tracking branch 'cakephp/master' into 2.x-fix-download-multi-connection
Change Cake to CakePHP
Merge pull request #2225 from bcrowe/hotfix-cakephp

Change Cake to CakePHP
Fix cookie component being inconsistent about writes.

Instead of treating multi-key and single key writes differently, they
should be treated consistently to allow simpler and more consistent interactions
with the stored data. This also results in fewer cookies being sent
across the wire which is an added benefit.

Fixes #2182
Update docs for CookieComponent::delete().

Refs #2182
Shift script install files around to put .bat first.

Hopefully this addresses installation issues on windows using composer.

Fixes #2145
Merge pull request #2219 from zoghal/2.x-fix-download-multi-connection

2.x fix download multi connection/optimise serve file
Update doc block and remove inline assignment.
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