Tweak theme compatibility to hook to loop_start and loop_end, to maximize compatibility with third party plugins and existing WordPress themes. Props r-a-y for the proof of concept. See #5021.

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