Rewriting to model off Java DGAPI.
Initial rewrite of the rollup subsystem.