Algorithms and Mechanisms for e-Democracy