Issue 1035: Implementation for "show total" property in grade entry form

This is an updated version of https://github.com/MarkUsProject/Markus/pull/1066 with Benjamin's recommended changes, in reference to https://github.com/MarkUsProject/Markus/issues/1035