Bugfix: close popovers when the theme changes. Otherwise, it will contain an outdated reference to a DocumentItem and fail with EXC_BAD_ACCESS when it is closed later on.
Added preliminary detection of controlled vocabulary or ontology linkouts.
Added preliminary support of extracting named entity markup.
Generalize implementation and call named entity handling next to structural document item handling.