Added ignore file for Mercurial, to allow mixed Git/Mercurial use.
Update everything to use Nuget package restore and the MiscUtil package.

Unfortunately everything appears to have been checked out with Unix line endings;
this will need to be fixed separately.