initial version of redis pub-sub
tweaks to manage the QR code and event stream