Create our own socket connections

This allows the user to set the socket options before the connection is
established. The previous approach of setting the options after the connection
was established was not correct.
I am not aware of any socket option that cannot be applied before `bind`. That's as strong a statement as I'm prepared to commit to at this time. =D