Fix characters arrive in the wrong order when using mobile text input app

Because we were sending char by char, some of the requests were arriving out of order. Now we send all the text in one go, and the handler sends char by char to the active window (if any).

This code has been fully tested in our Dev stack.