Make the WindowManager test sane.

Don't use a dummy UI and massive chunks of real objects.

Change-Id: I73ecf45760397d477137f13f1bdb210fa25cad97
Reviewed-on: http://gerrit.dmdirc.com/2710
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Remove some usages of Main.

Change-Id: I5f88cccf81f0fb80e2fcf915d453660d5690c8c0
Depends-On: Ie4d579ba97c2c1ed8a727f6548bdd9ae98981bdf
Reviewed-on: http://gerrit.dmdirc.com/2708
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager