Allow existing Socket object to be injected.

My particular use case for this is proxied sockets. Also see https://github.com/mscdex/node-imap/pull/388#issuecomment-44947651