Introduce thrift format for ingest

Definitely some questions around this - opening it up for discussion
I feel pretty silly, I raise a PR against scodec and then I realised that might work:

https://github.com/scodec/scodec-bits/pull/15