Added main server class

I've added the main server class to the project.