Some fixes for the Server.go
Implemented the handleReceivedXXXMessage functions.