There's been some development in this area; the first system you describe is known as 'liquid democracy' -- a direct democracy where anyone may delegate vote(s) to anyone else under under chosen criteria. The association with open-source and related movements is indeed present, a notable implementation being LiquidFeedback, originally developed for the pirate parties ~2010.
And a single official repository of all laws that can be edited directly and kept up to date. The United States Code is actually a pretty good place to start, here Iām just suggesting modernizing it.