Capture git revision and requested hostname in tracking context

Reviewers: @rocha, @brianhw
Note that things like this will only work if the application is started from a working directory that is inside the git repo.  If someone starts the application from a different git repo this could erroneously succeed with the wrong hash.