Apply DRY principal to vote and unvote Candidate function

Now it the same function with added boolean argument - upvote.

Some changes in the views and the templates accordingly...
Templates refactoring. What's in the navbar is now part of base.html
Fix #44. Vote by AJAX calls