added terminal panel to api_test
aug now correctly reaps children processes

keeps track of which terminal children have
terminated so plugins will know.