adopt version handling and output to transition from SVN to GIT
pywikibot/version.py sync-ed with core again

Change-Id: I79efeff22636db7fb1a9258ab6e95615afb8aad6
Merge "adopt version handling and output to transition from SVN to GIT pywikibot/version.py sync-ed with core again"