Fixed up the socket manager a bunch. And actually made it export.
More pretty-ifying of code.