Add callbacks for preWalk and postWalk.

Can be used to construct a messaging system between components with the
framework in a straightforward manner.