Revert "Revert "Readd formatMessageBeforeTable hook""

Adding dependencies soon.

This reverts commit 07bde4e7dfecc5dfd9423d55b8b5a7b6a47c4af0

Change-Id: I2f60f41ccfee9d4fa96208ffb7242c4425ee13b1
Merge "Revert "Revert "Readd formatMessageBeforeTable hook"""