client: add network abort

TCP_KEEPALIVE doesn't seem to work.
Use explicit timeout instead when the network
just drops any packet.
marsadm: fix call of localtime() in old perl versions
marsadm: fix split brain detection
marsadm: 'primary' denies waiting for device during split brain
marsadm: use stderr for errors and warnings