OS-2772 vmadm refactor part 1: separate VM loading from VM.js