Starting to implement group by method

The group method should be used to generate the statistics. For this I
will make use of the Scan and Scroll API.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>