refactored error and notice flashes into a partial
refactored header into a partial
cleaned up routes by removing some unnecessary actions
user can upvote or downvote a definition and can change their vote
user can see number of upvotes and downvotes for each definition