Isolate components instead of JQuery selector

Inject dependent components when constructing the composite instead of
relying on selecting later by id. Id selection creates duplicate id's
when using multiple instances of the xml editor.