domain socket server and client programs

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix behaviour on C-c and closed connections

Signed-off-by: Mattias Andrée <maandree@operamail.com>