Polished minimize to tray

Finished the system tray functionality and added a context menu.