Limit expanded content to 25kB per revision

(cherry picked from commit 69275f787a307d35c2f8ed6ae46f70bdd8903a78)

Change-Id: I67a4c6a2bf8ca029822712516fd2eb47dcd9516b
Merge "Limit expanded content to 25kB per revision" into wmf/1.24wmf20