Versioning changes and HistoryProxy extension

Several new use cases for querying the versioning history have been added.