Repair require broken by jshint changes in dc6c357

Fixes #213
Merge pull request #214 from dgw/issue-213

Repair require broken by jshint changes in dc6c357
Fixing a couple of bugs relating to joining channels. Closes #215
Fixed backlog messages not loading properly
Mark events as unread didn't work, fixing this
Allow more varied SMTP configurations

Requires smtps:// prefix for SSL, allows non-SSL config with smtp://
No longer requires username or password
Adds support for port
Fix missing 'error' key in output
Merge pull request #219 from shahyar/development

SMTP and error handling fixes