Rename libquilt-internal.h to libquilt-sapi.h to clarify role.
Generate and serialize errors in (nearly) the same way as any other data.