refactor utf8 and qrcapacity code into content scripts. Main sdk code is now responsible for just launching the panel, passing text, and resizing (on request from content code)