A bit of API cleanup, and moved DKV-specific stuff into new abstract class DKVHandler.