First version of server class with multiple connection support.