Interesting idea Jon, Might prove to be more trouble than it is worth in that recoding the site will only bring up all of the original problems you have no doubt run into plus more.
I can see where you are wanting to head with this and I think it is a good idea but not sure if you need to get as complicated as this. Good luck with it if you do decide to head down this path and know that you have a dedicated group of test bunnies here at your disposal!