Started server

Started the server logic and added stuff needed.