Refs #37, moves add and delete upvote SQL to Upvote model.

Also makes some small changes to the implementation of the Star model.