Change registry to be an emitter.
Refactor registry - major simplification.
Merge pull request #186 from troopjs/feature/registry-emitter

Change registry to be an emitter.