reports: refactored dashboards code.

Change-Id: Ifc4d5721635650b233baeedace9904976d48023e
Signed-off-by: Yaniv Dary <ydary@redhat.com>