Adding table format for grouped sums (CFCC)

This adds a pretty table format for grouped sum totals, same way we did grouped counts for AOHC.  There is a refactoring of an internal function also, and a variable name change ($handle to $elementId, since it didn't seem to be handles!)