This commit prepares a slighly more powerful TreeModule structure: Now, TreeModules can finish their execution, which should make some kinds of menus and transitions possible.
This one has some interesting code in its constructor, using the Cont monad because of the way the ModuleConstructor is structured.