JBIDE-13624 BrowserSim: source code refactoring

code refactiring to make browserSim better for supporting.

Note: this PR must be applied after https://github.com/jbosstools/jbosstools-vpe/pull/37