cmd/report: code cleanup
This is just a bunch of code cleanup in the report generation. MCMC, GPR, and history plotting functions are moved to their own sub-modules, code is re-arranged and cleaned up, improved comments, doc strings, etc.
Almost no functional change whatsoever (just removed one apparently unused function).
review commits individually