Rename PortBuilder to PortFactory

Also adds in some Configuration code into MainWindow. More to follow.