Update Socket#bind/connect/disconnect string escaping
Adding ZMQ::Socket#unbind and ZMQ::Socket#last_endpoint.

Also updates bind and connect methods to use last_endpoint to ensure the endpoint array
contains real addresses with ephemeral port numbers filled in.
Update TestMonitor in case a port receives a connection during test