Merge pull request #54 from roydude/v1-train

Changed 6029 to use _RESTART_DEVICE instead of deleteAllThreads().
Replaced missing self.messages.launch() in 6059.