Cleaned up formatting of test_connect_rid.  Set LINGER to 0 on sockets.  This may address the test failing on some devices.
Added assert on duplicate id in ROUTER and STREAM sockets.  Updated man to reflect this change.  Modified test case to match.
Added asserts on socket close in test_conenct_rid.
Merge pull request #848 from Prarrot/master

Changed fail behavior of CONNECT_RID to an assert failure instead of silent failure.