utils_test.libvirt: Move migration functions from test module.

Moved from virsh_migrate_stress test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>