virsh.dump: Cover --format option

1. New version libvirt/QEMU support compression when --memory-only option is specified for virsh dump, so and case to cover it.
2. Use the exist module to do libvirt/qemu configuration.




Signed-off-by: Yanbing Du <ydu@redhat.com>