Changed weights to be autocalculated based on
the number of metrics. Added resetWeights function
that fires after documents finishes loading all ajax.
Added clearing of aggregate column to datatable.js
in the clearDatatable function
Change the calcAggr function to return 0 if no
weightSum. Added processAllAggr to post ajax function
calls. So it recomputes after ajax is done and weights
computed.