panelOverlay/panelModal refactoring

 Automation changes for Modal Overlay
Merging origin/john/master-pending-panels into master