add tray icon

Add tray icon and notifications plus miscellaneous cleanup/utility
changes