Add git-hook and update ZIP building scripts to more automatic

The add-on version number is automatically added to the addon.xml file
and a version.py is generated by a new git-hook. This will mean that we
always get a unique version number for debugging based on the git tag
version.