avoid null-pointer exception when executed outside the servlet container
Use the production registry by default, better for build testing
Update the registry code
Add test for complex methods of the RegistryFacade
Minor updates to fit the RegistryFacade