Lots of improvements.

Improved support for some apps. (eg. NixNote2 and digiKam).
xdotool can be used instead of gen-mouse-ev (but not so efficient).
Fallback to xdotool if gen-mouse-ev not exists.
Added cmd. line opts: -xdt(use xdotool) and -h.
And other improvements/fixes.