Update to Vault 1.4

Updated to work with Vault 1.4 and newer (also hold compatibility with
older Vault versions)