virttest.virsh: Add save_image_dumpxml and save_image_define APIs

Add save_image_dumpxml() and save_image_define() APIs for
libvirt virsh command new testcase
virsh_save_image_define.py|cfg

Signed-off-by: Guannan Ren <gren@redhat.com>