Implements IME handling

Input via IME is captured by using a hidden input element with compositionstart/end event.
Here, browser difference becomes an obstacle...
Adds Buffer#getCursorPosition