Better uploading

Uploading student score lists now checks for duplicated student ids.
Also fixed small bugs that would break the site if you tried to upload
student list that contained duplicate student ids.