Reverting to using Messages in validation resulted in simpler interfaces.

Moved layouts, blocks and views under templates, but only under system.
Under application they are still under views.
Added DatabaseErrorHandler, that rewrites database error messages.
Moved database/postgresql under drivers.