Add signal handler for server

The server now exits cleanly and shuts down the connected clients.
The program should be finished but can be improved.

To compile the server:
gcc server.c -o server -std=c99 -lpthread -D_REENTRANT -w

To compile the client:
gcc client.c -0 client -std=c99 -lpthread -D_REENTRANT -w