Cleanup client

Resolves a bunch of issues- still need to test it though.

Resolves #292 #290 #293 (Theoretically...)
I was debating on whether or not I should put this in file_contents or in analytics.

My reasoning for this was that we'd only have to go through 1 dictionary- file_contents instead of both file_contents and analytics in order to figure out if it was the final submission. Also, in my head, it made more sense for the files to be marked as "submit" or not versus an entire message. However, I'm not particularly attached to either choice.

@albert12132 - Thoughts?