Bug 1044744 - Move IFrame management in keyboard_manager.js to another script

Likewise, `InputFrameManager`.