Splitted the client messages and the handler messages in two methods.
Improved abstraction of ServerBase in order to make it more modular