Support for .NET 4, Linq (with test cases) and using NuGet packages

This pull request has one side effect. Due to the change of NHibernate to v4.0.1, the Rhino.Security.ActiveRecord will be unusable.