Huge speedup for building initial view mappings from server.

Update views once per batch (instead of per-document), and remove old mappings in batches per view instead of individually.