Add metadata for state backups.

This is part of my effort to split up the work for backups into a few smaller patches.
Probably.  I was just hopeful consumers could use an identity check on the result for the not found case.  I need to take a good look at the errors package.  It probably does it all.