Support for input type="text" and RTL

Further pwnage of all other attempts:
* http://stackoverflow.com/questions/13347471/caret-position-in-pixels-in-an-input-type-text-not-a-textarea
* http://stackoverflow.com/questions/6930578/get-cursor-or-text-position-in-pixels-for-input-element