use envelopes for messages and support external-scripts.json

This is to support the envelopes change as detailed here: https://github.com/github/hubot/compare/v2.4.1...v2.4.2