Add threads for connecting to server and reading commands.