Start allowing dataset-logs to be truncated

Make the transmitter force a resync if the logs it needs have been purged.
Also skip logs that are certainly covered by the resync.
Starting to extend the New Replication Scheme to secondaries