Add metadata for state backups.

This is part of my effort to split up the work for backups into a few smaller patches.
Field comments should precede fields. That way they show up nicely in godoc.