Basic server

Added basic server and client handling.