Add metadata for state backups.

This is part of my effort to split up the work for backups into a few smaller patches.
I ran out of time to work out mgo issues after pulling up master, so I'm sure this isn't the only that wouldn't compile.  (I wanted to get something up tonight since by the time I start work most of the world is already done for the weekend.)