(#993) - Use allDocs to batch generation 1 docs

Batch fetching docs of generation 1 via `allDocs` api in replication.