added voting functionality, still needs to be cleaned up
cleaned up some code to be able to follow examples
finished up voting feature
implemented create_vote method in app/model/post.rb and call it with after_create