app.nlp.coref: big code drop for WithinDocCoref2, which appropriates many things from bestfirstcoref
Finishing the code drop for WithinDocCoref2