Bug 1043121 - Move IMESwitcher in keyboard_manager to another script

There is a `mock_event_target.js` in shared, not sure if you want to use it or not.