mds: Add encode/decode/dump for use with dencoder

This is for the MDSTable subclasses, and adding 'skip' to dencoder to deal with version preambles on the objects containing them.

Signed-off-by: John Spray <john.spray@inktank.com>