Adapted tests for block selections.
Tests for attribute and element repositories
Import cleanup.
Adapted to package refactoring
Created ITemplateProcessingContext, readapted TextRepository infrastructure.