Initial code commit of C bindings

Probably doesn't work entirely, unit tests arriving Real Soon.