Added BotConfig.fromJSON constructor (Fixes #4)