Preparing input event barrier handling for dialogs (see #166), and fixed the layout issues with the PhetMenu (fixes #114, fixes #115)