extract imeMenuCallback
abolish use of _ to refer to mozL10n.get
abstract waitForSwitchTimeout
move imeswitcher around