analytics: add pivoting and filtering support

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
analytics: iteration on current queries

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
analytics: add more useful reports

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>