Only mark as visited if the document is actually new
Merge branch 'master' of github.com:flack/openpsa