cache collection state to disk

cache collections to disk so we can efficiently serve the _expand all requests through an apache rewrite rule