Bug 1043121 - Move IMESwitcher in keyboard_manager to another script

Please use anything beginning with `on` OTHER than `onmousedown`. We might not be abstracting mouse down event in the future. I won't stop you if you want to address that in the future though.