Use a custom message handler for catching log
This messagehandler intercepts calls into qCDebug and writes the
messages in the kscreen categories to our log file.
All messages are then passed to the previously installed messagehandler.
This is a pretty neat solution, since:
- we can make use of the stream operators from qDebug
- we don't need to rewrite all the debug statements
- normal debug is otherwise still working