Make "ask" functions get input and output streams
Make "ask" functions get input and output streams

This way we can control where the input comes from and the output goes
to (like we want to with libimagrt).

Signed-off-by: Matthias Beyer <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@beyermatthias.de>

matthiasbeyer/imag,matthiasbeyer/imag