Refactor and improve code, use corpus2 1.9.0
Refactored / reimplemented modules & features:
- configuration reading,
- main linking module,
- document_context,
- logging,
- plugin, filtering.
Additionally, using corpus2 with hashable tokens: Thanks to this fix tokens can be used in dicts (keys) and sets.