some bpleast discussion rewriting
mostly finished bpleast discussion plus supercool hack to allow compiling bib both in single-file mode as well as main-file (uses ifndef/def trick from C)