fix some menu bugs, split menu function to a standalong file named operation.js
add a program icon, add a menu item to open debug tool
use gui.App to get app parameters, add Tray icon and menu in status bar