Preparing a VMware OS for Templating

For cleaning up a VMware VM so that you can provide a template, this script seems to really work.