Porting vault non-interactive session to 7.1 + some Vault API enhancements

Porting vault non-interactive session to 7.1 + some Vault API
enhancements to enable nice installer integration.
Part of [JBPAPP-8971].