Implement path based error reading.

Much like other parts of CakePHP, errors in entities should be readable
using a dot separated path.

* Implement code.
* Fix tests.

Refs #3807