Basic structure for main server class.