Make it simpler to set up a serialization instance with particular formats.

BUG=
R=sethladd@google.com

Review URL: https://codereview.chromium.org/696433003