Use NuGet's PackageSourceProvider.

Move logic out of SharpDevelop and use NuGet's PackageSourceProvider
to read and update NuGet package sources in NuGet.Config.
Handle being unable to read or update NuGet.Config.