Added minimize to tray

I added a "Minimize to tray" function and a checkbox in the settings.

The context menu of the tray icon could be expanded to add more options, perhaps an "add from clipboard" option that immediately does that.