refactored saving post and creating vote
added favorites and associated spec tests