Added Thread base class, ServerThread class for main Server