Gui import test

The focus of this PR is to be able to import all the modules in the gui tree without creating a QtApp first. The main fix consists of refactoring class initialisers which accessed Qt properties at import time.