When navigating history, the document-loaded signal isn't triggered and we can't directly get back the previous webview, so we have no other choice than to look it up everytime a new message is received.
New common.[hc] files where shared functions between surf and webkitextension will be put. First addition is die().