provide an interface to access generated output more as a stream

@piojo i updated the example. come to think of it, we can use it to take decisions based on output and act upon it during the interactive `yum shell` (yes, `run_qa` all overagain....)