First version of judgment links extractor with tests

Judgment links extractor: first version + fixes