Avoid multiple DB querying during reports generating

Different parts of reports use the same data (except sorting order).
Let's keep queryset result in memory as list and change sort-order
internally.
Make translated words totals equal in differnet parts of report

When we summed translated word count by translation project we could get
a total count that differs from total count in summary. That is a side
effect to see the whole numbers for a translation project.
Totals must be equal. And subtotals are calculated for that total in
whole numbers.
Cleanup: Minor style fixes

Bits and bobs cherry-picked from older master commits lost in the logs