Kv response refactor

Created a common base for for the KV responses that encapsulates all the ORM conversion and conflict resolution.