New Popup Menu System and Dialog System

Now it's possible to use popup menu and dialog creation simple. Although
it's quite simple at this stage, it allows for easy creation of menu
items and showing an associated dialog.