Enabled NuGet package restore
Moved security model classes to Core, plus other minor changes