Added basic code for messages
First stage of server