Added support for voting comments and posts, and for new votes tab in user profile; some minor code cleanup