Versioning changes

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