A bit of cleanup.
Some intermediate work on BLB.
Added support for stratified sampling.  Some basic unit tests pass, but the code is unstable and has many FIXMEs.