Don't try to index non-text files when importing from document

Also call the callback when importing PDFs from the document. I'm not
sure why this wasn't called before, but it seems like it should be.
Fix PDF tools prompt on pref window open if Search pane not yet loaded
Fix colored tags in group libraries

Pressing the number keys was pulling in colored tags from "My Library".
Don't attempt to select items that are not in the item tree
Merge pull request #408 from aurimasv/dupFilter

Don't attempt to select items that are not in the item tree
Close transaction before updating progress indicator

Should fix #230
Remove Zotero.wait() from Zotero.Collection.addItems

Since this is inside a transaction, it could potentially cause more
state check errors
Don't delete collection on partial import
Continue to force params on citeproc-js (may go away one day soon)
Merge branch '4.0' of https://github.com/zotero/zotero into dev
Kludge to avoid integration error on item missing in database