Add support for --config-check for checking that the scripts are working

Implementation of https://github.com/github/hubot/issues/713. The main thing is that it changes some async FS operations to be sync, and then when `--config-check` is set, just loads the scripts and then exits, rather than starting the bot with `bot.run()`.