Add leveldb_comparator_t and functions

Adds the C interface for leveldb_comparator_t and it's handling
functions.

Additionally, add a small, unfinished, comparator implementation.