Add class ControllerThread to manage the control events in a thread,
improve the bluetooth connection methods in Controller and implement the
Control functionality in the GUI.