DEVEN-210 refactored vm_create.pl for better testing and modularization.