Fix incorrect timestamp values when using fromString()

When using fromString() on DateTime objects that were in the global
timezone, an incorrect value would be returned.

Fixes #3743
Fix warning with FormHelper::inputs()

introspectModel() can return non-array data sometimes. Casting avoids
warnings when forms are generate for models with no or faulty schema()
methods.

Refs #3602
Expand doc blocks for Model::query()

There were some undocumented options that had test cases.

Refs #3748
"maxlength" is not a valid attribute for input element of type "number" in html5.
Merge pull request #1225 from ADmad/2.3-input-number

"maxlength" is not a valid attribute for input element of type "number" ...
DateTime::getTimestamp() is PHP5.3+
Fix secure field lists when select elements have custom name attributes.

When a select element had a custom name attribute the secured field name
was incorrect.

Fixes #3753
Fixed issue where incorrect cached filesize was reported when appending to file.
Merge pull request #1226 from ADmad/2.3-file-clearstatcache

Fixed issue where incorrect cached filesize was reported when appending ...
Remove useless reference operator.
Remove remaining reference operators.

These were left over from the days of 1.x and aren't needed anymore.
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