qemu: track the 'active' state of VBDs,VIFs and report this in get_state

Without this, xapi might think that devices should be garbage collected.
qemu: chgrp and chmod'ing the qemu vnc socket is unreliable, do it in VM.stat instead