Got rid of the need for the Link class

MainWindow should own the single IO device. Likewise, the serial and UDP
setup dialogs should own their own settings structs.