Major re-design of view classes in text.py -- got rid off inheritance, duplication, and factory; object construction simpler.  Related changes elsewhere.