ADDED: Hook pengines:prepare_module/3 to allow for more complicated
preparation of the pengine's work space.
ENHANCED: Allow redefining I/O to HTML and pengine_output/1 by
redefining the I/O predicates rather than using goal expansion.