Adds tests for CDTReplicator.state when a local datastore is deleted during replication.

This test currently fails because CDTReplicator.state == CDTReplicatorStatusComplete,
when it should probably be something else (Error, with appropriate error message).

Makes a few small changes to the LogTo message in CDTReplicator.