Improve compatibility with Elgg 1.9 notification plugins.

Passing in the notification object and event e.g. allow the site_notifications plugin to generate a link to the entity where the mentioning took place.