Bug 923459 - [Messages] jshint fixes

mostly globals and exported, but also some somewhat bigger changes in some parts
(esp wbmp).