Resolve concurrency issues in text.cpp. Fix up missing destructor for TextObject.

This code depends on Boost, which hasn't been added yet.
Merge branch 'master' of https://github.com/aparent/QCViewer