Reworked main window, making systray an option.