Add metadata for state backups.

This is part of my effort to split up the work for backups into a few smaller patches.
Will the backup results be getting stored in Mongo as well at some stage? That was my understanding from reading other PRs. If so, should this collection be "backupmetadata" to avoid conflicts later? Or will backups go in a different database altogether?