Improve history handling

Yet another history / navigation fix.

This PR contains two commits. 
1) Update navigation to use nextLinkId from database
2) backForwardNavigation stuff moved from model to webpage

The first commit contains a small non visible improvement for
active tab title that got revealed by new WebView unit tests.