Refactor dweet start-stop code to be global
Refactor dweet start-stop code to be global

This way the same code can be used to start example code when showing
editor.

lionleaf/dwitter,lionleaf/dwitter,lionleaf/dwitter