Changed nant build to support .NET 4.0.
Upgraded solution and projects to VS2013 while targeting .NET 4.0.
Installer checks are moved from Application_Start to Application_BeginRequest because of IIS integrated mode.
Upgraded libraries to .NET 4.0 compatible versions.
Support Integrated mode.