Allow non-core components to hook into notifications via a filter. This allows components that are not registered as part of the main BuddyPress singleton to hook a callback into a filter instead. See #5148.

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