Remove System.Web

Use code from the Mono project so we can compile as .NET Framework 4 Client Profile.
Also remove some unneeded references in various projects.