JSONRPC/REST: Implemented calculateResourceAgg() call.