Add metadata for state backups.

This is part of my effort to split up the work for backups into a few smaller patches.
Someone mentioned the possibility of storing them in Mongo, but it was a kinda-sorta-in-the-future thing.  Regardless, you make a good point.