Adding addDocument implementation for ClientSyncEngine.