Version packages with branch name, SHA, and git remote.

Move versioning to to do_stamp_cmd so that package version is

updated when a package is built.  Add git-remote if available.