Fixed starting the servekeythread from the main UI window

There were some unresolved import problems that prevented the thread
from starting which have been fixed.