Added support for a notifyicon and minimizing to the tray.