added if statement to protect empty last_action
made problemsets sortable by type
made grading used assignment_type.grade_type not assignment.grade_type
updated problem adding so that any ACID can be added (once) to any assignment as a problem