Improve batching of writes in view updater

This patch causes the view_updater to wait until either a minimum
number of items or a maximum process memory size has been reached
before committing the changes to disk.

See COUCHDB-700 for discussion

BugzID: 11885