Create a clause_processor to text_reader adapter.

This moves the clause_processor => text_reader adapter logic out
from the context analysis logic into a generic adapter. This
simplifies the migration of the different processors to the
clause_processor interface.