Added separate ServerCommunication class

For general readability and better access