remote: Refactor remote*Open and remote*Close functions
remote: Refactor remote*Open and remote*Close functions

Add generic versions of the open and close functions and call them.

kantai/libvirt-vfork,cbosdo/libvirt,warewolf/libvirt,rlaager/libvirt,jardasgit/libvirt,novel/fbsd-libvirt,emaste/libvirt,novel/fbsd-libvirt,wiedi/libvirt,elmarco/libvirt,warewolf/libvirt,taget/libvirt,eskultety/libvirt,usc-isi/libvirt,wiedi/libvirt,jeckersb/libvirt,shugaoye/libvirt,siboulet/libvirt-openvz,datto/libvirt,kantai/libvirt-vfork,jardasgit/libvirt,wiedi/libvirt,agx/libvirt,warewolf/libvirt,foomango/libvirt,usc-isi/libvirt,emaste/libvirt,fabianfreyer/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,leilihh/libvirt,jfehlig/libvirt,dumbbell/libvirt,trainstack/libvirt,soulxu/libvirt-xuhj,zhlcindy/libvirt-1.1.4-maintain,siboulet/libvirt-openvz,soulxu/libvirt-xuhj,crobinso/libvirt,nertpinx/libvirt,elmarco/libvirt,warewolf/libvirt,VenkatDatta/libvirt,rmarwaha/libvirt1,trainstack/libvirt,novel/fbsd-libvirt,emaste/libvirt,eskultety/libvirt,datto/libvirt,siboulet/libvirt-openvz,libvirt/libvirt,warewolf/libvirt,cbosdo/libvirt,dumbbell/libvirt,bjzhang/libvirt,jardasgit/libvirt,olafhering/libvirt,rlaager/libvirt,trainstack/libvirt,cbosdo/libvirt,shugaoye/libvirt,bjzhang/libvirt,foomango/libvirt,agx/libvirt,jfehlig/libvirt,libvirt/libvirt,cbosdo/libvirt,rmarwaha/libvirt,novel/fbsd-libvirt,shugaoye/libvirt,elmarco/libvirt,emaste/libvirt,usc-isi/libvirt,rmarwaha/libvirt,leilihh/libvirt,trainstack/libvirt,usc-isi/libvirt,siboulet/libvirt-openvz,elmarco/libvirt,wiedi/libvirt,andreabolognani/libvirt,crobinso/libvirt,rlaager/libvirt,VenkatDatta/libvirt,iam-TJ/libvirt,VenkatDatta/libvirt,dumbbell/libvirt,andreabolognani/libvirt,taget/libvirt,rmarwaha/libvirt1,zippy2/libvirt,elmarco/libvirt,dumbbell/libvirt,iam-TJ/libvirt,leilihh/libvirt,jfehlig/libvirt,trainstack/libvirt,libvirt/libvirt,shugaoye/libvirt,nertpinx/libvirt,zippy2/libvirt,wiedi/libvirt,cbosdo/libvirt,foomango/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,zhlcindy/libvirt-1.1.4-maintain,leilihh/libvirt,foomango/libvirt,kantai/libvirt-vfork,dumbbell/libvirt,jfehlig/libvirt,bjzhang/libvirt,zhlcindy/libvirt-1.1.4-maintain,rmarwaha/libvirt1,agx/libvirt,leilihh/libvirt,jardasgit/libvirt,novel/fbsd-libvirt,datto/libvirt,jeckersb/libvirt,olafhering/libvirt,eskultety/libvirt,olafhering/libvirt,olafhering/libvirt,jeckersb/libvirt,agx/libvirt,warewolf/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,danwent/libvirt-ovs,jeckersb/libvirt,rmarwaha/libvirt1,eskultety/libvirt,jeckersb/libvirt,novel/fbsd-libvirt,novel/fbsd-libvirt,danwent/libvirt-ovs,wiedi/libvirt,danwent/libvirt-ovs,rmarwaha/libvirt,bjzhang/libvirt,zippy2/libvirt,soulxu/libvirt-xuhj,andreabolognani/libvirt,datto/libvirt,zhlcindy/libvirt-1.1.4-maintain,iam-TJ/libvirt,kantai/libvirt-vfork,fabianfreyer/libvirt,trainstack/libvirt,andreabolognani/libvirt,kantai/libvirt-vfork,emaste/libvirt,siboulet/libvirt-openvz,rmarwaha/libvirt,danwent/libvirt-ovs,andreabolognani/libvirt,jardasgit/libvirt,zippy2/libvirt,emaste/libvirt,rmarwaha/libvirt1,crobinso/libvirt,foomango/libvirt,jeckersb/libvirt,taget/libvirt,trainstack/libvirt,jeckersb/libvirt,leilihh/libvirt,usc-isi/libvirt,rlaager/libvirt,dumbbell/libvirt,fabianfreyer/libvirt,iam-TJ/libvirt,rlaager/libvirt,VenkatDatta/libvirt,novel/fbsd-libvirt,soulxu/libvirt-xuhj,nertpinx/libvirt,taget/libvirt,iam-TJ/libvirt,libvirt/libvirt,iam-TJ/libvirt,warewolf/libvirt,emaste/libvirt,eskultety/libvirt,fabianfreyer/libvirt,agx/libvirt,wiedi/libvirt,rmarwaha/libvirt,soulxu/libvirt-xuhj,novel/fbsd-libvirt,taget/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt,nertpinx/libvirt,bjzhang/libvirt,iam-TJ/libvirt,danwent/libvirt-ovs,datto/libvirt