[vsphere] add list_templates function
[vsphere] add get_template function
Vsphere: add options of numCPUs and memoryMB for VM clone
delete vms that is not ready for vm.config, e.g. during the creation period
merged fog HEAD, deleting whitespaces
delete whitespaces
fix issues in checking whether VM is of template type
Merge pull request #1747 from mingjin/vsphere

[Vsphere] delete VMs of which config is NULL