Added compatability processing for Pages output by BuddyPress plugin and components.

There are probably better ways to do this, but from my tests this seems to work pretty well and removes the 404 Page for all pages belonging to BuddyPress.