Add server handlers.
Refactor tests.
Refactor network.
Add client socket.