Z-index trick to make the cursor un-selectable.
Update selection when clicked on cursor.
Retrigger CSS animation on cursor reset.
Add hacks to show the cursor at begin of line.

The DOM has a strange behavior with DOM Ranges spanning over the first
character of a line: the range's rectangle starts at the end of the
previous line.
Cleanup.
Add workaround for a DOM Selection glitch.