Add conditional versioning

Versions are now created only after a specified period has elapsed, or a
specified difference in the word count is present.