Avoid global vars by passing opt args to kwrepo.file
"Normal" reading of filelog just expands keywords in given data.
Reading filelog for overwrite on commit, kwshrink, kwexpand triggers
kwtemplater.process, which returns read data (expanding in case of
commit, kwexpand; not expanding for kwshrink) and a count of keywords.
If kwcnt is positive file will be overwritten.