[Tests] Added ReplicationTests.

TestBuildRelativeURLString, TestBuildRelativeURLStringWithLeadingSlash, and
TestRunReplicationWithError now pass. The later does not when run by itself.
TestLiveQueryRun, TestLiveQueryStart, and TestPurgeDocument seem to have
regressed. Need follow-up.