output redirection

implements the output tee discussed in: #20

Also sends back std(out|err) as soon as it is hit instead of waiting for a point of user control.