Initial commit of server from Beej's guide to networking