Move webui.py to webui/__main__.py
Fix console.py
Fix really crazy python bug

The import time inside the threads run method caused the whole thread to
stop working, if the devicemanager module was previously imported using
an explicit relative import?!