namemangler: Remove the view and move the logic to NameMangler itself

Preparation for merge with the QT GUI code. Destruction needed to be
cleaned up as well.