index/corpus: cache sorted (by time) permanodes

Context: http://camlistore.org/issue/298

Change-Id: I599f430e0f7691e54df38e10344c62cbdb6429a0