Renamed KerbalStuff / ks2ckan -> NetKAN
Renamed CKAN.KerbalStuff -> CKAN.NetKAN
The all new and amazing NetKAN!

We can now inflate files with `netkan SomeMod.ckan`. Provided it
contains a `$kref` path we recognise, we'll fill in the metadata,
validate it, and write it out (`SomeMod-1.23.ckan`).

We support both KerbalStuff IDs, and Github repos:

- `"$kref" : "#/ckan/kerbalstuff/269"`
- `"$kref" : "#/ckan/github/pjf/DogeCoinFlag"`

Other changes include:

- BootKAN -> NetKAN (directory rename)
- NetKAN.json no longer needed
- bin/netkan-all regenerates the entire index.
- Nicer command-line options.

Closes #151 like a boss.
`netkan` no longer requires a KSP install to operate.

For a cache, we now use the following:

- What the user specifies, via `--cachedir=...`
- The local CKAN cache, if we can find it.
- The tempdir for the machine.

This means that the `netkan` utility can be used on machines without KSP or the CKAN client installed.

Closes #190.
NetKAN: No longer pre-fill KSP version when min/max exists.

- Includes tests.
- Closes #199
NetKAN: Always use default_version_id to locate latest release.

- Includes tests.
- Closes #214.
- Thanks to @Starstrider42 for spotting this.
Updated SharpZipLib to a hand-built bugfixed copy.

Uses the patch from https://github.com/icsharpcode/SharpZipLib/pull/53 .
Thank you, @novn, for writing this.

Uses the build fixes from https://github.com/Arakis/SharpZipLib for
Mono. Thank you, @Arakis, for providing these.

The branch I built from is at
https://github.com/pjf/SharpZipLib/tree/ckan_gh221

Attentioning @bastianeicher who is maintaining a totally awesome
SharpZipLib patches branch. @novn's patch above fixes the bug
described at http://community.sharpdevelop.net/forums/t/21758.aspx .
There's a test file at
https://github.com/pjf/CKAN/blob/221_ziplib/t/data/gh221.zip which shows
the presence of the bug when combined with the test at
https://github.com/pjf/CKAN/blob/221_ziplib/CKAN/Tests/ZipLib.cs .

Closes #221.
Closes KSP-CKAN/CKAN-meta#33

@malahx: I'll be releasing an updated CKAN client shortly with these
fixes.
Added NetKAN/AVC classes.

For #237.
Added AVC.FromZipFile
Added AVC inflation to NetKAN.

Closes #237.

Way too many people have `.version` files which are full of errors or
don't follow the spec. :P
fixed sharpziplib references
Merge remote-tracking branch 'nlight/master'

* nlight/master:
  Added 'Auto-close on success' checkbox to the wait dialog
  Windows fix for empty default stanza bug.
  fixed warning
  Fixed a Windows only bug where default stanzas would not work.
  fixed sharpziplib references
  small fixes

Conflicts:
	CKAN/NetKAN/NetKAN.csproj
Updated the NetKAN to generate files according to the new spec.

This is really just a change to how we handle resources.
Make Monodevelop use Csharp formatting again.

WTF, Monodevelop? The old file looks fine to me.
NetKAN: No longer index pre-releases.

Exercises existing test cases (new commits without this patch will start
failing.)

Closes #273.
better NetFileCache integration
temp path now cleaned on startup, fixed a bug with IsCached
NetKAN: Search Github assets to only download zipfile.

- Doesn't include tests, because I'm a terrible person
- Closes #290
Merge remote-tracking branch 'origin/master' into netcache

* origin/master:
  NetKAN: Search Github assets to only download zipfile.
  ModuleManager can once again be installed.
  Test demonstrating bug in GetLeadingPathElements
  Further tests to ModuleInstaller.
  Added a disposable KSP manager for testing.
  More tests for path utils.
  Fixed the mess I made in ModuleInstaller
  Test: ModuleInstaller destination path
  Refactor KSP cloning functions to TestData class.
  Now removing leading parts of paths in FindInstallableFiles. Also added path utility methods (and tests) to KSPPathUtils
I brokez the NetKAN. This fixes it.

Apparently the content-type is provided by the browser, so really it
could be anything for a zip file. We now check a couple more types, and
assume a `.zip` extension is also good.

I'm really sorry. This is why I should write more tests.