add debug messages
use options properly to reuse passed socket
Merge pull request #40 from node-xmpp/socket

Socket