Add maintenance script to populate revision diffs in database

Change-Id: Ia011e9cc04577544892358d1c63025575d8b0470