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