Import decode.c from pg_plugins.
Initial work building a json-targetting logical decoder.