Fixed error in project builds
Now building to .Net 4.0 Client Profile

Some server code cleanup