Now working mostly. Still no job control.

This may be a pain to solve - stuff to do with being a session leader
and all that seems to come up with depressing regularity.
Add internal event type.
Add data collection agents.
Prompt agent will need to be passed particular arguments.
Set up daemon, various other things.