Added an enum for submission types and fixed the update URL.

Also changed assignment API to return needs_grading_count_by_section