fanin and fanout protocols merged into a single pipeline protocol

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