Added ability to view older document versions

Initial work only, lacking good UI