PHP Document/Text Version Control Class