Work on global registry integration.
Add @frett's global registry client
 - code reorganization
 - some logging added