migration: refactor: merge direct and p2p into unmanaged
migration: refactor: merge direct and p2p into unmanaged

p2p plain and direct function are good candidates for code reuse. Their main
function is same - to branch among different versions of migration protocol and
implementation of this function is also same. Also they have other common
functionality in lesser aspects. So let's merge them.

But as they have different signatures we have to get to convention on how to
pass direct migration 'uri' in 'dconnuri' and 'miguri'. Fortunately we alreay
have such convention in parameters passed to toURI2 function, just let's follow
it. 'uri' is passed in miguri and dconnuri is ignored.

Signed-off-by: Nikolay Shirokovskiy <7fa0e2698a05be944b362bdf5d7736c0162e16c9@virtuozzo.com>

jardasgit/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,nertpinx/libvirt,taget/libvirt,eskultety/libvirt,eskultety/libvirt,andreabolognani/libvirt,jardasgit/libvirt,datto/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,andreabolognani/libvirt,datto/libvirt,rlaager/libvirt,eskultety/libvirt,datto/libvirt,nertpinx/libvirt,olafhering/libvirt,olafhering/libvirt,andreabolognani/libvirt,zippy2/libvirt,taget/libvirt,olafhering/libvirt,taget/libvirt,jfehlig/libvirt,jfehlig/libvirt,jardasgit/libvirt,andreabolognani/libvirt,crobinso/libvirt,rlaager/libvirt,rlaager/libvirt,zippy2/libvirt,fabianfreyer/libvirt,eskultety/libvirt,libvirt/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,zippy2/libvirt,crobinso/libvirt,andreabolognani/libvirt,jardasgit/libvirt,libvirt/libvirt,datto/libvirt,olafhering/libvirt,fabianfreyer/libvirt,eskultety/libvirt,nertpinx/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,rlaager/libvirt,crobinso/libvirt,nertpinx/libvirt,libvirt/libvirt,crobinso/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,taget/libvirt,VenkatDatta/libvirt,rlaager/libvirt,datto/libvirt,libvirt/libvirt,zippy2/libvirt,taget/libvirt