tee output to stdout/stderr

Ultimately I want this configurable. Need to figure out a nice API for that
though.