Add some getter for inner parts of the architecture.
Package repository already clears the registry client cache.
Add test for the package repository getters.
Use some of the getters in the list and register commands.