Convert git revision injection into env-vars hook

This adds the git revision to the /app/.profile.d directory for
buildstep based deploys so that child processes which might not
have access to the original environment can source the .profile.d
directory and gain access to the information.

It also add the information to the env-file for Dockerfile based
deploys eliminating extra image layers.