This fixes the deprecation warning, and maintains old behavior.
This gets rid of the two warnings reported in github/hubot/828 express.bodyParser() is deprecated in favor of only using the parts you need. I've replaced it with only the parsing bits that I believe Hubot is using: url encoded and json. If Hubot does in fact need to parse multipart uploads, this patch will not work.
I noticed this when running tests for a Hubot instance that created a lot of Robot instances. Eventually Node warned that there were more than 10 listeners for the uncaughtException event.
… to use https to use rejectUnauthorized
…t exported instead of a scary backtrace