Changed name of objects to reflect change in client.
Added order cancelation functions and improved logging and error handling.
Changed some of the indentations.
Improved message handling and SIGINT initiated server shutdowns.
Added SIGTERM handler.