Configure buffer limit by message count

This allows an operator to decide how large the buffers should be. It
also provides an escape valve to clear the buffer entirely.
Fix counting bug in buffer

Quoting @davisp:

There's a bug in rexi_buffer that can lead to the counter in its state
running negative. I noticed this on malort looking for memory usage. A
quick reading of the code suggests its due to us getting a timeout
message with an empty queue. Theoretically this could happen if we've
exceeded the MAX_MEMORY threshold when sending a message or even with
just grabbing the buffered count when its idle.

BugzID: 28049
Merge pull request #25 from cloudant/28049-rexi-buffer

Counting bugfix and configurability enhancement for buffers

BugzID: 28049
Add max_count to state record
Fix error_limit = 0, and make it the default

Setting the error_limit to 0 would previously cause rexi_server to crash
on the next error because of an unhandled exception in a queue:drop/1.
This fixes that exception and makes a limit of 0 the default. Operators
can still raise the limit to capture errors in the future if we end up
finding that useful.

BugzID: 30821
Merge pull request #26 from cloudant/30821-set-error-limit

Fix error_limit = 0, and make it the default

BugzID: 30821
Replace margaret with couch_stats

Also add stat_descriptions.cfg.

BugzID: 16742