regedit: Introduce a new API to build the dialogs.