vWriteLog() now takes vargs. No more sprintf followed by vWriteLog code!
Initial code to invoke debug thread from Gui thread