Re-add flatfile support, add more UUID-based functions in the API

Updates are for compatibility going forward with the UUID system, primarily concerning Vault.

Flatfile support has no testing commands, but has migration (confirmed to work in testing) and UUID support (confirmed to work in testing).