compute: create environment type for template substitution
Created by: rvantonder
Stacked on https://github.com/sourcegraph/sourcegraph/pull/27888.
This maps some values in results to a flat environment of variables that may be referenced in a template. File and commit results are mapped for now, and only some of the more handy values like author, date, etc.