Fix file writing routine, save all rows (page and revision)
Include config arguments for page and revision cache size in tmp file
Include new config argument for tmp file rows (page and revision)