Add access filter on document view, refs #679. Redirect to root on logout.