Added TextRenderer class that takes ownership of Text instances and their rendering.