Cleanup of cache manager and jvm compile task.

- Make fingerprint_strategy a ctor arg instead of passing it around everywhere.

- Get rid of a stale recomputation of sources-by-target.