patch the _version file so it reports the running version

until now this was only possible when running python setup.py version
from the source tree. now the <module>.__version__ also reports
correctly the runnng version
Merge remote-tracking branch 'refs/remotes/kali/feature/patch-reported-version' into develop
Use git.exe instead of git.cmd in windows since we use GitBash
Merge remote-tracking branch 'chiiph-github/bug/versioneer_windows' into develop
remove conditional gzip, fix import
Merge remote-tracking branch 'refs/remotes/drebs/feature/consistent-metadata' into develop
add http-encoding header, decode it too
Merge remote-tracking branch 'refs/remotes/kali/fix/really_enable_gzip' into develop
Enable to regain lock on shared db using token. Closes #4522.