Added callback function on new dictionaries downloading fails

+ Refactoring a bit
Cache dictionaries after downloading
Fixed a bug with memory leak after turning off spellchecker

+ There were a couple of closures which stored references to
dictionary, so GC didn’t remove dictionary object
Merge pull request #2 from bardsoftware/latex_spellchecking

Cache dictionaries after downloading