Fix incorrect syncing behavior when book matching is run for a second time while connected. This happens when the user changes the library or selects "Update cached metadata on device".
Merge branch 'master' of https://github.com/cbhaley/calibre
Refactor HTML syntax highlighter too keep track of tag nesting

This is needed for the eventual implementation of inline spellcheck
Start work on managing dictionaries in calibre
...
Add ISO 3166 country codes
...
Implement loading of both builtin and user installed dictionaries
...
Start work on dialog to manage user installed dictionaries
...
Start work on adding dictionaries
Add/remove for dictionaries from OpenOffice extensions  works
Implement renaming of dictionaries
Integrate the dictionary widget into the editor preferences
Keep track of the current book's locale as a separate global variable for performance
Refresh all editors after changing dictionaries
Add Spanish and English (GB) builtin dictionaries
Add code to get all words from a ebook with their declared locale
Try to use the right country variant english dictionary by default, based on the users locale settings