support for well tempered template

hi.
I have a vcenter + 3 hosts, no clusters defined (just datacenter)
I noticed that for my setup your code didn't work.
main difference was: I don't have any clusters defined.
What I do is take the required config details either as is from template,
or from the target host/datastore.
If you think its usable - use if of course, if you think I'm doing something wrong, please comment :)

Regards!
Will check how to do this in the future..