Threaded DQM migration. Plus memory leak fixes

Migrated to use Threaded DQM in helper classes. Fixed memory leaks when people forgot to delete pointers.

Signed-off-by: Antanas Norkus <antanas.norkus@cern.ch>