implemented libkyotocabinet backend prototype; re-wrote calc_batch to use the kc API
database.c: fixed memory mangling when reading with good old memcpy
database.c: clean up debug code
remove more debug code...
move  command_check_batch into an extra source unit
database.c: implement the DB_find_* API
Makefile: remove cdb download code because we won't it anymore
ported command_check_batch to the new kyotocabinet API
remove db2array() from the tree; remove libcdb dependency