Updated the socket library.

It is now far more user friendly. Most of the configuration is
straightforward and easy to customize. There is now an interface for ini
configuration files.