small refactoring in discover_registration_services.rb
small refactoring in local_server_dialog
small refactoring in import_certificate_dialog