REFACTORING: Explicit local scope for variables.
FIX: More robust views against malformed data.

Compatibility with old data model
where highlights were stored in the corpus object.
REFACTORING: Faster KWIC computation.