Improve reranking, Add slot type, Add more output options, Add link score to wikilink.

Improve deduplication, merging, and reranking.
Add slot type with maxAnswers and slotType field, reorganize pattern loading code.
Factor out output formatting code into OutputFormatter
Retain link score in Linker