Bug 964753 - Upgrade to mozrunner 5.31. r=dhunt

(cherry picked from commit 57842e2d828456a6a57e592c862c6c82b8935385)