Refactored the wizard logic
Common implementation for both the vault creation and vault importing wizards.