Start work on a generic link extractor.

At the moment this just implements the first step of the Styliser's
link detection. It doesn't apply any of the "intelligent" corrections.