Import relevancy improvement code.
Address philc's comments.
Remove verbose commentary.
Fix options link in help dialog

This makes the options link in the help dialog cancel the default event
action, so the link (`href="#"`) isn't followed. The former behaviour
was most obvious when using the `LinkHints.activateModeToOpenInNewTab`
command, amoung others.
Merge pull request #1060 from smblott-github/relevancy

Relevancy - incorporate the position at which matches occur.
Merge pull request #1061 from mrmr1993/fixOptionsLink

Fix options link in help dialog
Remove unnecessary if statement