Write page after its revisions

This is necessary when creating big dumps from XML.
Without this, all revisions of a page have to be kept in memory,
including their texts.
A downside is that this will increase seeking when reading.

Change-Id: Ib6ea9fe67671df7a5686f6a4e441ab95ff6dba01