Replace Twisted's thread with QThread for the GUI.

Removes the twisted dependency from the GUI.
This allows us to avoid hacks to use two reactors (Qt and Twisted).