Xenguest Generation ID support for save/restore

Also contains two logging bugfixes