added fields to assignment table and submissions table to show whether t...

...hey were archived or not. refactored repeated code into partials for student actions and assignment submissions