Adding git commit to the version output

The Makefile must be used in order to inject the git commit
via -ldflags.
Shortening the git commit used in the version command
Implementing dirty git checkout indicator
Merged shawnsi/git-version