Fix bug 1021917: update snapshot/restore for new build/deployment
Bug 1022271

Write hot_deploy, force_clean_build, git_ref, git_sha1 to deployment
metadata file as part of prereceive and use metadata file's values
afterwards in postreceive, build, prepare, distribute, activate.
Merge pull request #4010 from pmorie/bugs/1021917

Merged by openshift-bot