JBIDE-14960 BrowserSim/CordovaSim: externalize messages. Refactoring