Committed core/org.terrier.matching.TRECResultsMatching. Corresponding test class also committed to test/org.terrier.matching.TestTRECResultsMatching
Note the change of spelling: "Results" rather than "Result". This is to avoid conflicts with the old TRECResultMatching, which is used by lots of other classes.
Other changes in this class resolve issues TREC-204 and TREC-213.
Other things to notice:
1) I've renamed properties from "trecresults.matching.xxx" to "matching.trecresults.xxx" so as to have a more top-down namespace, in line with other properties, such as "matching.dsms";
2) "matching.trecresults.scores" now defaults to true, as this is the most frequent use case;
2) I've opted for switching between docnos/docids as a property (matching.trecresults.format), rather than having separate classes.