Setup of client and server. Still needs more work.