Merge socket_utility and instream_helper into socket_manager