Remove almost all references to Main.

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