Added logging routines.
Added error routines.
Added signal wrapper routines.
Added socket wrapper routines.
Added the server.