Improve client/server architecture.

The server is now multithreaded. The client will now create one socket per request.

This commit mark a few classes/methods as deprecated:
  - backend.NotConnected -> backend.NotRunning
  - BackendManager.connected -> BackendManager.running