A working C client has emerged. It needs cleaning up and possible having several types made so an opaque API can be gleaned from it.
Added a debug make option.