Added batching to pushing changes

Greatly speeds up sync with a large number of changes