Mayor refactoring: Now the reports are stored as dictioanries

Before the reports were arrays, containing also the total values
for the report as an element. Now they are dictionaries, whoose key is
the user id
Fixed a bug in generate_settlements with the new report format