Rename socket file to server to better suit its function

Changed the way server determines which host to listen on by using
getaddrinfo() rather than passing a hard coded host string in. The
server socket descriptor and address info is now kept track of, as
well as there being a clean up function for releasing these resources.
Updated clients to use server.h
Updated main program to reflect new server changes