Registry exposes repair/reindex functionality

Normally we only used this when performing upgrades, but
they're useful to be called explicitly if our registry has
inconsistencies.

They actually fixed my broken registry. :)
Added a `ckan repair registry` command.

Fixes #400.

Fark, our CmdLine is a mess. Going to try and clean it a little bit.
KSP_VERSION_MIN does not require KSP_VERSION_MAX
Merge pull request #417 from tips48/ksp_version

Make KSP_VERSION_MIN and KSP_VERSION_MAX independent
Merge pull request #405 from KSP-CKAN/400_registry_repair

Implement `ckan repair registry` command.