cache api rework
return file revisions in listfiles, do not return random crap for dirs
check revision presence in tests
make file lists cachable
drop useless dead code