fixes #5113 - sort realms by host count
fixes #2438 - Add image build capability to vsphere using templates
fixed #5120 - fixed migration for discovered hosts