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

I would separate the fixes in the graph view (probably done for this PR) from the cleaning of all views. Otherwise the fixes are lost in a huge diff and difficult to spot. Could you do a separate PR with the fixes ?