Encapsulated some pthreads methods to simplify the project. Also moved server.c to a tutorial folder