Made proper serialization for TransportSocketEndpoint's.
Added Base58 encoding function (decoding is not ready yet).
TransportSocketEndpointFactory is a class that unserializes tse
depending on their type.