use window.onlanguagechange instead of mozSettings
Merge pull request #24 from zbraniecki/1013929-switch-to-onlanguagechange

Bug 1013929 - Use the languagechange event instead of a mozSettings observer. r=stas
Bug 994290 - Clean up attribute storage in AST. r=stas