C driver

Hi peter,

here is the c-driver I have been using to test cakedb.
I've modified it to be easily used by others.

Feel free to merge it with the unstable branch.

Cheers,
Gary