Fix bug in User#show method computing last attempt

If a student had no attempted exercises or challenges, the User#show controller was defining @last_attempt as [nil].  The view was checking whether or not the array was empty.  Because it contained this nil value, the array was passed to the last_submisssion_date helper method, which attempted to call submitted at on the NilClass object, causing an error that prevented users from being able to view the pages of students with no challenge and exercise attempts.
Fix bug in setting flags from cohort page

When setting flags from the cohort show page, the flag was always being set for the first student listed on the page.
Merge pull request #27 from toreyhickman/flags

Fix bug in setting flags from cohort page
Merge pull request #26 from toreyhickman/last_attempt

Fix bug in User#show method computing last attempt