Implements multi-click selection

Single-click : unselect
Double-click : select word, based on separators
Triple-click : select line

This emulate the behavior of Gnome Terminal and Xterm, with some divergences due to weaker handling of long lines (see https://github.com/traff/jediterm/issues/24)