Add metadata for state backups.

This is part of my effort to split up the work for backups into a few smaller patches.
Sounds good.  I was following the lead of existing doc types, but apparently they led me astray! :)