Move virtual machine into framework
Fix TTY client build
Make sure duplicated commands aren't added to history