Fix cursor position API to take into account links, Ticket0711
Improved link recognition
* Notably
  - recognize continuous link (http://get is already recognize. Adding notable.com will be recognize as the same link)
  - recognize what are no more links
* Fails to
  - Recognize a link upon paste
Check for links on every note update
Fix some cursor API bug when focus is not correctly set
For example, we are quitting a note and the focus is not yet set in the next one
Fix cursorPosition and last title on pasting
Selection is replaced on pasting
That was already partly done but found a corner case
if selection is made from right to left, (pressing shift + left arrow for example), previous way of handling wouldn't replace selection
Ticket0711: Hyperlinks are automatically detected and underlined