Fix issue that can cause test to freeze when there is a failure.
Add encryption support to server.
Adds encryption enabled server test.

This also fixes a testing issue where zeromq  can't seem to handle creating multiple
client or server endpoints at the same location with different contexts.

Can't tell where the issue might be, probably should submit spec test to
ffi-rzmq devs.