Draft: auto-generate some extension marshal code
We've got lots of manually written marshal code (mostly dispatch demux, swapping, etc), which can be generated automatically.
Here's an WIP attempt to reduce this by a little piece of python and yaml.
The idea is simple:
- write the request and response payload layouts into simple yaml (per ext)
- generate header code for it which works as drop-in replacement for current manually written code