Merge pull request #98 from AndersBillLinden/master

Some more testing on file uri:s
Throw exception if we try to link to a file url from an online document. Also fetching referrer from the history stack. Required: onlinetest.