Reintroduced batching to message pumps. Sorry, world. It's just too slow without it.
More message pump refactoring.