Abstract socket handler

This is base class, extended by all class connecting to network.
Treat this as common interface for socket wrappers.