scores: Fix unit tests.
scores: Store stage ID instead of full stage record to allow later changes to the stage-objects.
stages: Add index property to stages (e.g. for sorting).
teams: Fix loading teams.
scores: Allow toggling reverse sorting on columns, more elaborate defaults.
ranking: Allow more complex sort rules (e.g. multi-column sort).