[WP] Link highlight fix (feature #1356)

Now visited links change their color.
[WP] Added option to open images in browser

Now images could be opened in new browser window instead of popup.
Option added.
[WP] Refactoring. HandleClick method extracted.

8 tabs of indentation was too much.
Merge branch 'feature/linkstyle' into develop