WIP. Removed most of the code for the old qemu interface and started handling the new protocol.