scilib/xbblocks.py: extended Bayesian Blocks analysis tool

Builds on Jake Vanderplas' bayesian_blocks module in AstroML (which has been
borrowed into pwpy).