Durable local storage proposal

This is a proposal for #598


...maybe we should solve storing debugging stuff, but do we really want to do it like this? We should ship it off somewhere... I think that discussion is covered in other places.