Don't clear other tag colors when rename colored tag
Fix error trying to toggle colored tag with no tag

(This should be fixed so that the setting is always removed, though.)
Fix clearing selected tag when removed from last item in view

I somehow broke this in d2f028d797c5c0ae3d77d54a5bbabaa5cd4a961b, though
I'm not sure how.
More tags box fixes (follow-up to f932f312ebbc)

Use the Notifier for all tags box updates to ensure that it always updates.

Also fix the tag count and some other things.

Post-tab focus still isn't 100% correct in all situations, but it's real close.
Fix glitch entering tag with whitespace

If an existing colored tag was added to an item with whitespace around it, the
tag didn't immediately show up with a color.
Disable key navigation on 1-6 keys if any tag colors are assigned

Previously any unused numbers were still available for key navigation, but I
think it's too easy hit the wrong key that way, and getting moved to another
part of the items list is annoying.
Fixes incorrect post-edit scrolling

Fixes #268, broken in 2cd45be19162d

Post-edit scrolling can probably be smarter, but this fixes the brokenness.
Merge branch '3.0' into 4.0
Don't rely on object property order to sort tags

It works, but in theory it's not guaranteed in JS.
Show colored tags in tag selector in all views

Always show colored tags at the top of the tag selector, regardless of
whether they're in the current scope. If not, they're shown with reduced
opacity (as an equivalent to the gray style for out-of-scope tags in
Display All Tags mode). As a corollary, colored tags are now shown even
if they have no associated items and will remain until they're
explicitly deleted.

Also:

- Don't show outline on out-of-scope tags in "Display All Tags" mode
Fix error on tag change without a selected item (from 1e59c5ab7)
Fix broken checkboxes in tag selector context menu (OS X only?)

On OS X, the checked state of <menuitem type="checkbox"/> still doesn't
work right if set before the menu is opened. To get around this, the
state is now set manually in onpopupshown(). There's an annoying delay
before the UI update, but this is better than nothing.
Keep tag selector label heights consistent

Use a transparent border so that the height is the same with or without
zotero-clicky being set
Fix tag selector glitch after removing last tag, again

Better fix than 4e1fbf9747
Add "Delete Collection and Items..." context-menu option

Also update collection/search deletion dialogs with better button text and no more "[JavaScript Application]"
Remove unnecessary version checking code
Context-menu string cleanup

- Remove all "Selected" from "Selected Item", because that's how a context menu works
- Change "Remove Selected Item" to "Remove Item from Collection" (fixes #122)
- Change "Delete Selected Item from Library" to "Move Item to Trash")
- Change "Remove" on Duplicate/Unfiled Items to "Hide" (fixes #122)
- Change "Create Parent Item from Selected Item" to "Create Parent Item"
Merge branch '4.0'