Added minimize to tray

I added a "Minimiza to tray" function and a checkbox in the settings.

The context menu of the tray icon could be expanded to add more options.