fix uses of refactored sockman
reformat go-loops
Move request handling stuff from core to ATC