Cleaning of reporting (group_by, filters,...) and adding new favourites and defaults views (+ code cleaning)

Why is this change in a report-related branch ? it should be in a separate branch, is it a fix ?