Make cardreader (applet) code work together with QR code.
Merge cardreader and qr demos.