Expose registry on DEBUG global

As per discussion, expose the registry on the DEBUG global so that debug tools can hook into it.