Github: United States Code
the UK parliament basically does this already:here's an example of an act that's been modified:
http://www.legislation.gov.uk/ukpga/Geo3/41/79?timeline=trueand an example of a bill going through parliament:
http://services.parliament.uk/bills/2012-13/financeno4/docum...