Server-side version of #249 / 5c75c68a0e9836a96e9ba93a881121c4733e0dcf
Fixes #248 and most of #247 without needing the lit client to be updated
Also made it enforce that the resolved hash matches the hash in meta.snapshot, which means that its guaranteed that the next time the zip is requested it'll be able to just use the snapshot hash and not need to resolve the deps (since the resolution will create that hash in the db). Not sure if that makes sense to do or not.
Server-side version of #249 / 5c75c68a0e9836a96e9ba93a881121c4733e0dcf
Fixes #248 and most of #247 without needing the lit client to be updated
Also made it enforce that the resolved hash matches the hash in meta.snapshot, which means that its guaranteed that the next time the zip is requested it'll be able to just use the snapshot hash and not need to resolve the deps (since the resolution will create that hash in the db). Not sure if that makes sense to do or not.