Cleanup of code to manage registry datasets
Merge pull request #28 from pjakobsen/master

Registry management code