Remove unused define.

The LOG_ERROR constant is no longer used by the logging system. It is an
unused relic from 1.x. Additionally changing the value of ERROR to not
be error creates counterintuitive code.

Fixes #3762
Add support for key => value cookies.

This makes using simple arrays easier, and I feel it is a long standing
omission from HttpSocket.

Fixes #3771
Add some docs for cookies.
Fix condition parsing in mysql specific cases.

When using collation + array values the incorrect operator would be
used. IN should be used over =.

Fixes #3772
Improve error message.

One of the cases was not explained in the existing error message.

Fixes #3773
Do type checks when looking for models in Controller::$uses.

This solves issues with models not being added when $uses = true.

Fixes #3774
add assert that habtm save does not return false
Add test for time input with interval on first hour of the day
Add additional tests and fix incorrect meridian selection

When dates around midnight were used with interval + 12hr formats, the
incorrect meridian was selected.

Refs #GH-1237
Remove silly code.

Changing the 12'th hour into 0 shouldn't be done when figuring out the
meridian, it makes sorting things out later more complicated. Remove
some duplicated code.
Merge branch 'master-time'

See #GH-1237
Merge branch 'master' into 2.4