Use bulk upsert for replaceMany in the persister

Use bulk upsert built into Elastica to fix #527