added basic implementation for server message handling

Signed-off-by: Giovanni Vinaccia <vinaccia.giovanni@gmail.com>