[#6] Refactor pause check into own function
[#6] Add a batched version of run_forever.

The idea is that you can request (and process) batches of messages
instead of just one at a time.
[#6] Deal with small buffers

We need to deal with the case whereby we end up with a buffer that is
smaller than the max size, but no new messages are coming in.
Because we wait for the buffer to reach the max size, we will never
process the buffer! That is bad.
[#6] Remove debug log statements
[#6] Fix typo
Merge pull request #7 from EDITD/feature/6-batched-handler

Feature/6 batched handler