Experiment with CBOR serialization

Not intended to be merged. Implemented a [CBOR](https://www.rfc-editor.org/info/rfc7049) serializer to get some hands-on experience. This is using a low level API. I expect that it will be possible to use more high level tools, such as play-json, with CBOR.