Votegral framework for voting and participatory democracy