Add support for %b and %B.

This permits adding data after the build rule name when using NINJA_STATUS.

Move BuildStatus out to be able to configure it.