Fix for Issue-100: Refactor the code for calculating a student's average mark

#100 - Improved calculating released averages

Added total_grade to grade_entry_students.
Updating total_grade whenever a grade is updated.
Calculate_released_average now calls each grade_entry_student's total_grade instead of calculating it then.