Use NuGet.Core where possible

TODO:

- [x] Find more places where we can use NuGet.Core instead of our own implementation

Btw, I had commit access before Squirrel moved to its own organization, seems that this got changed?