Simplified total score calculation

Introduced mapping between UserStat attributes and
the points awarded for the value of the attribute.
New badges on competitor page.
Reward users who finish last in a competition - secret scoreboard
Merge branch 'stats-3-last-place' into develop
Merge branch 'develop'