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

As we have discussed last week, let's not duplicate the `runningLayouts` dict in both modules?