ADDED: Hook pengines:event_to_json/3 to allow for variations in translating
the output to JSON.  Will be used to support Prolog toplevel bindings and
can be used for application-specific translations.