reqrep test improved

It tests whether request that cannot be sent is sent immediately
when the peer arrives rather than waiting for resend counter to
kick in.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Refactoring of REQ socket.

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