Cleanup app and mainwindow

Hm, what's the rational for this move? You are making a pure qt thing depend on twisted now.

May be a better alternative would be to continue using the callback, but if none is provided, then it just doesn't use one. And when you divide each process, you stop sending the callback to the Qt bits.