Update createMessageIndex.php to use Maintenance class

Also removed 2 STDOUT calls from MessageIndex.php.

Change-Id: Ic366f29ef1a8444ad952e6f82b3f8d1c308f4351
Merge "Update createMessageIndex.php to use Maintenance class"