Simple server socket logic + handling threads