Refactor ControlThread out of Control Server.
Merge remote-tracking branch 'origin/master'