Add config.statement_callbacks.

These are functions that are called at the start of each statement,
with the statement name.
Implement window auto.