Many BuddyPress JavaScript updates

Lots of tidying of BP components to incorporate BP javascript and Ajax