Add some actions and filters to `BP_Messages_Thread`.

Props slaFFik.
See #5193.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9165 cdf35c40-ae34-48e0-9cc9-0c9da1808c22