Improve rendering the report template page
This commit moves the main logic from the report template page into the python code.
Now the report table is fully generated in the python code and then just passed to the template to be rendered. This makes it more convenient to add further features to the page and also keep the code easier to read in the template side.
This commit also includes the features of showing only the valid tests for each report page (apt and ostree).
Signed-off-by: Luis Araujo luis.araujo@collabora.co.uk