Fix #1431 "Grid menu is cropped in scrolling dialogs"

- don't move global menus in DOM, but with CSS
- fix menu z-index
- move grid/repeater JS files to XBL