Hooks for dao

The thing I suggest is to make able a user to set some kind of hooks on some basic dao operations during the system configuration.

The only operation yet implemented is the non-batch 'insert' operation.

These changes are backward-compartible and rely on the pull request #35.