add optional UID for stack lease and optional git-ref for redeployment