(20750) move vm setup/teardown from test steps to lib

Tested clean with fusion, vsphere, aix, solaris and blimpy.  --preserve-hosts also tested.  Should cleanly replace the current vm control done through early + cleanup.