Foundations of Interactive Democracy