Fix breakage from 10ba5e31d
Update citeproc-js to version 1.0.542
Revision to patch from upstream 4.0
Log state check errors (and other logError calls) to debug output
Fix previous commit
Fix state check errors (middle-pane restart messages) during syncing

The state check errors were caused by 4812ab6f, which was a fix for
"Q.async(...)(...) is undefined" errors caused by ad8b81f4c, which was a
fix for "too much recursion" errors related to Task.spawn() on Windows
with JIT enabled.
Merge branch '4.0' of https://github.com/zotero/zotero into newdev