versioneddir: Write index.json files

These can be used by the web UI to traverse the directory.