Preparing for reorganisation in terms of server and client side.
Server/Client separation complete.
Added keyboard interrupt handling to server to ensure that the server socket is closed.