limit the pageHistory to 50 items when saved. fixes #634
Merge branch 'docprep_paste' into testing