General Cleanup and reference fixes

Updated log4net to 1.2.11 and projects to .net 4