Add run loop manager class for simpler, thread-safe signalling between loops.
Use the run loop manager in QTConsole.