Reorganized much of the reporting code to use from scala-notebook. Consolidated some reporting code from other projects into this one.