Merge pull request #186 from troopjs/feature/registry-emitter

Change registry to be an emitter.
Simplified task