Codegen and java compile now use artifact cache.

Also: fix style nits, and remove logging noise.

Also: fix a hardlinking bug.

Auditors: markcc
Remove now-stale comment.