Socket type is sent on the wire

Socket type is now passed in the protocol header (in tcp and ipc
transports). The peer checks whether the socket types are
compatible.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>