API for transport-specific socket options added

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Implementation of transport-specific option in the core

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