Refactor git mod cache spec.

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
Have GitModCache write all changes to cachefile.

[finishes #72304146]

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>