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

Also changed assignment API to return needs_grading_count_by_section
Merge pull request #162 from bpluim/submission_fix

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