Working Networking
Now with a real settimeout (not using sleep).
Now connects to the backend with non blocking select