[573] QA "Unknown error" / "site_user_apikey" error. Fixed by centralizing the context creation in lib.py. Also got the QA to trigger when anything on a resource is changed, to be sure. And I added resource["package"]=pkg_id to the resource dict that gets put on the queue - otherwise it was not updating the search index.