WIP buffer limiting
Merge pull request #1 from ironcladlou/buffer-limiting

Make input buffering configurable