Switch to new serialization primitives.
Change authentication tree structure to encode count and size in the digest.
Omnibus update. Disambiguate LittleCompactSize, BigCompactSize, and VarInt. Also redo the ledger classes to match the current BIP.