Moving BP code to its own file.

Moving BP code to its own file. It is needed for work around some bp
functions.

I include the new file with bp-include hook.