Make the stats replication time-based instead of marker based
Moved to the time window model, but with a cursor system for the callers to use.
Lots of improved error handling and logging and a bunch of bug fixes
Retry when there are errors clearing existing records