Add a runThread() method to launch automatically a client or server in a thread
Add a method to manually stop the thread (see previous commit)