added checksum validation to code-generation

the new BuildCache class now creates a checksum after generating code
and checks against it before allowing to deploy it.
this helps prevent corrupted builds from being moved.