HBASE-8636: Backport KeyValue Codec to 0.94 (HBASE-7413)

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.94@1490079 13f79535-47bb-0310-9956-ffa450edef68