Add metadata for state backups.

This is part of my effort to split up the work for backups into a few smaller patches.
You're referring to Status or IDFormat (github makes this confusing)?  Can you document consts?