Calculate submission average score via aggregate.

Use a SQL aggregate calculation so there is no opportunity for the
average score to be out of sync with the assessments. Fixes #55.