Implemented tray icons and minor fixes

Tray icons with the same same as a script will show up in the menu
automatically.