RFB protocol stuff, which currently doesn't work.