Group revision by the type(header or post id) in RevisionStorage::findMostRecent

Change-Id: Idb29d37a81ebf76fa7762e3e2cd2d87c25bb3baf
Merge "Group revision by the type(header or post id) in RevisionStorage::findMostRecent"