wishlist: on-disk storage.

i don't yet know how to do this. i want to store the index
"efficiently", but i also want to store it in segments in a key-value
store so that i can use localStorage as a backend. but i don't yet see
how that would work.
writing/thinking about how persistence could work.