libvirt-svirt: Add test for save and restore in svirt.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Improve save_to_file and restore_from_file in libvirt_vm.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>