accept array of itx.Element objects or strings
allow caller to set to and type attrs of xmpp.Element
Add test and correction
remove commented code cruft
make reply a synonym of send when a message is an Xmpp.Element
Merge pull request #22 from martinwalsh/master

Add the ability to send custom Xmpp.Element objects as messages
Bump version number.
Support hubot 2.4.1 adapter format

See github/hubot#dc27aca6fcbd0d5b8d7fdc47f2feeb6638d3a028
Fix tests for changes related to hubot-2.4.1

Update stubs to use `envelope.user.id`
Merge branch 'issue-26'

Fixes #26
Fixes #27
Upgrade node version for tests.
Stub out robot.brain.userForId

The userForId method moved to robot.brain from robot, in
newer versions of hubot.  Update tests accordingly.
Bump version number.
Pass entire envelope to @send method from reply; fixes #30
Merge pull request #31 from jenrzzz/fix_envelope

Pass entire envelope to @send method from reply; fixes #30
Respond to errors to not "hang"

Ideally this would reconnect instead of exiting, but I couldn't figure out how.

The errors it currently looks for are:

* ECONNREFUSED:
  Happens for me if the ejabberd server is not running when the bot starts
* server-shutdown
  Happens for me if the server shuts down while the bot is running.

Before this fix, the bot would just hang. After this fix it will exit (and if
run under forever, restart)
Fix robot.messageRoom, missing user in env

When using robot.messageRoom, the envelope only has room in it, and no user.
This small fix will just check for user object, and if not defaulting to the
group sensible defaults
Merge pull request #33 from omega/fix-hanging-errors

Fix hanging errors