create simple registry
Merge pull request #17 from oat-sa/refactor_registry

Seems to work for me!