mds: modernize SimpleLock on-wire encoding

This is a wire protocol change.

Signed-off-by: Sage Weil <sage@inktank.com>
mdsmap: uninline encode/decode

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
mds: move conditional MDSMap encoding into single encode method

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
mds: MDSMap now uses modern encoding

Signed-off-by: Greg Farnum <greg@inktank.com>
MDSMap: mds_info_t now uses modern encoding

We have to update the older-style MDSMap encodings to generate
the previous versions for clients as well.

Signed-off-by: Greg Farnum <greg@inktank.com>
mds: uninline Capability encoders

Signed-off-by: Sage Weil <sage@inktank.com>
mds: Capability (and sub-structs) now uses modern encoding

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
mds: old_rstat_t now uses modern encoding

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
DecayCounter: use modern encoding

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
AnchorServer: use modern encoding for server state

Signed-off-by: Greg Farnum <greg@inktank.com>
CInode: use modern encoding for encode_store

Signed-off-by: Greg Farnum <greg@inktank.com>
CInode: use modern encoding for encode_export/decode_import

Signed-off-by: Greg Farnum <greg@inktank.com>
InoTable: use modern encoding for encode_state and decode_state

Signed-off-by: Greg Farnum <greg@inktank.com>
SnapServer: use modern encoding for server_state

Signed-off-by: Greg Farnum <greg@inktank.com>
mds: ECommitted now uses modern encoding

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
FIXME: curse this linking problem I need to diagnose!
mds: EExport event uses modern encoding

Signed-off-by: Greg Farnum <greg@inktank.com>
add EExport to dencoder, only NOT
mds: remove unused EString event

While we're at it, #include LogEvent.h from each of
the log events, some of which didn't include it previously!

Signed-off-by: Greg Farnum <greg@inktank.com>
mds: EFragment event uses modern encoding

Signed-off-by: Greg Farnum <greg@inktank.com>