Add support for T::xdr(XDR*)

Route the encoding/decoding through a template class and have the
primary implementation call into T::xdr(XDR*) and write specializations
for everything else.  Actually, not *everything* yet, but eventually.