refactored post show layout
added ajax for votes
fixed issue with unauthorized user could comment
changed update_attribute to update_attributes method for post.total_score update