Modified connect method so that connection options needed for amqps tls connection can be supplied.
Refine socket open with options, and provide SSL example

We can make the socket open more compact by using the callback-y form
of connect.