Set maximum on integer encoding

On Sun, Oct 20, 2013 at 05:23:50PM -0700, Roberto Peon wrote:
> If any value is too large, the connection should be torn down.
> The definition of 'too large' depends utterly on details that we cannot
> predict.

Here's a proposal for that.