Hide main window to tray on click
Add preference for hide-on-minimize