decoder: support opcodes the encoder produces
decoder: avoid problems with short reads
encoder: fix integer encoding ranges
decoder: add BINGET / LONG_BINGET
encoder: oops, uint16s are little-endian too
Merge pull request #3 from dgryski/more-encoding-decoding-work

A few more small fixes to the encoder and decoder.