Adds version number mechanism to work well with git

When installing with pip from repo, the version number
now shows you how many commits you are away from the
latest tagged version.