This allows us to perform other general initialisation task (such as setting the tree model on the device combo)
The actual wiring up of events and clearing out of old, unused elements is not complete yet, so this is completely non-functional at present.
Also had to put mainwindow into it's own header for this to work. Full conversion of mainwindow will ultimately follow.