Added an popup menu to the system tray icon with a single exit menu
item. In addition to some code cleanup; refactoring, abstracting, and
commenting.