Move a good chunk of the singleton objects into a new QApplication subclass.