Change registry to be an emitter.

should we also have a 'replace' event in case a component was replaced and not added?