Refactored ServerSettingsDialog and added NewServerDialog.