Encode and decode CBOR documents, with both easy mode, streaming mode, and SAX-style evented mode.