Flag up/downvote tests

closes #44 
closes #45 
closes #93 

Also cleaned up some of the old retrieval stuff on the backend (by cleaned up I mean removed), I fixed some of the error handling in the flag system.