Fixing IPC problems exposed while working on Windows builds.

IPC routines were written before I had any clue about Qt's signals/slots
stuff and was written in a horrible kludgy way that was blocking the
main loop.