Save git hex revision in powerline version string if possible

Only useful for `pip install git+git://` or `pip install /some/directory` 
installations (note: commands come without `--editable`/`-e`).
Strip trailing newline returned by rev-parse
Merge pull request #1133 from ZyX-I/build-version

Record git hash in dev version