Added network server functions, started Diffie-Hellman implementation.