Moved the listeners for the client to external classes for a better
structure, made some improvements to the user's feeling of the client
and fixed the server-side logging system