Shifted the writer thread into the log control, and Redirect_text handles both STDOUT and STDERR.
The Redirect_text class now is initialised twice, once for STDOUT and once for STDERR. This allows
the two streams to be put on the FIFO with different flags.