Server-side re-structure, it was a mess, and it's simpler now.

Maybe a little too simple, still it needed cleanup
set maxSockets to 3, seems reasonable for my crap VPS