Move socket to its own library.