Refactor virtualmachine undo process, change 'engine' key on workflow dict to 'enginecod' and add a 'vms_id' key to workflow_dict