Introduce helper function for getting the BuddyPress component name, and filter new BuddyPress function to include it in registered components. Fixes #2495. Hat-tip imath. (trunk)

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5232 9866e705-20ec-0310-96e7-cbb4277adcfb