Fix: Sync of libraries
The `library.json` file is now properly saved when creating a new library. This was a regression introduced with the cache mechanism. Also include a fixup mechanism, which allows existing "bad" libraries to reconstruct their JSON file from the existing LMDB cache.
Showing with 44 additions and 9 deletions