Pedestal:  Add ready-to-exit hook

If set, the hook will be called every time a null event is received from
WaitNextEvent() until it returns true, after which point the application
exits.  While quitting proceeds, WNE sleep is capped to one tick so that
application threads get ample time to finish up and terminate.
Genie:  Send SIGTERM to all processes on Quit