Bug 1093537 - Move input app window management-related responsibility from KeyboardManager to InputWindowManager

- A lot of events that only affects inputWindow showing/hiding goes to InputWindowManager instead of KeyboardManager now.
- "RemoveKeyboard" concept is now separated:
 -- "keyboardlayoutsremoved" is used to signify that some keyboard layouts have been removed (disabled from system settings, or uninstalled keyboard app); or loaded In
 -- "keyboardkilled" is used to signify that a loaded and currently showing out-of-process keyboard has been OOM'killed. This event only goes from InputWindowManager t
- A closed InputWindow now has height 0 instead of undefined.
- Please use inputWindowManager.hideInputWindow()/.hideInputWindowImmediately()/.getHeight() in place of KeyboardManager.hideKeyboard()/.hideKeyboardImmediately/.getHe
- inputWindowManager is a singleton and accessible in the window scope.
Move this into a standalone function; this.getMemory() for example.

BTW, it might be a problem if the DOM request is not finished before you access this.totalMemory.
I am not going to ask you to fix it in this bug.